mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-27 15:42:56 +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
|
@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)
|
if(event.phase == TickEvent.Phase.START)
|
||||||
preTick(event.world);
|
preTick(event.world);
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in new issue
Block a user