mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-11 07:47:47 +00:00
Workaround some mod interactions not calling the world load event before world tick
This commit is contained in:
1 parent
4a40b215d5
commit
feb8bfd028
1 file changed
+4
-1
@@ -123,8 +123,11 @@ public class WorldExtensionManager
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void clientTick(TickEvent.WorldTickEvent event)
|
||||
public void serverTick(TickEvent.WorldTickEvent event)
|
||||
{
|
||||
if(!worldMap.containsKey(event.world))
|
||||
WorldExtensionManager.onWorldLoad(event.world);
|
||||
|
||||
if(event.phase == TickEvent.Phase.START)
|
||||
preTick(event.world);
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user