From 34a94189cf413164d2364dad26325688bc8128e6 Mon Sep 17 00:00:00 2001 From: Glease <4586901+Glease@users.noreply.github.com> Date: Mon, 14 Mar 2022 14:21:25 +0800 Subject: save config late (#982) --- src/main/java/gregtech/common/GT_Proxy.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/main/java/gregtech/common') diff --git a/src/main/java/gregtech/common/GT_Proxy.java b/src/main/java/gregtech/common/GT_Proxy.java index ec4362ec75..987b573637 100644 --- a/src/main/java/gregtech/common/GT_Proxy.java +++ b/src/main/java/gregtech/common/GT_Proxy.java @@ -166,6 +166,7 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler { public boolean mMagneticraftRecipes = false; public boolean mImmersiveEngineeringRecipes = false; private boolean isFirstServerWorldTick = true; + private boolean isFirstWorldTick = true; private boolean mOreDictActivated = false; public boolean mChangeHarvestLevels=false; public boolean mNerfedCombs = true; @@ -1459,7 +1460,13 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler { @SubscribeEvent public void onWorldTickEvent(TickEvent.WorldTickEvent aEvent) { if(aEvent.world.provider.dimensionId == 0) - mTicksUntilNextCraftSound--; + mTicksUntilNextCraftSound--; + if (isFirstWorldTick) { + for (Runnable runnable : GregTech_API.sFirstWorldTick) + runnable.run(); + isFirstWorldTick = false; + worldTickHappened = true; + } if (aEvent.side.isServer()) { if (this.mUniverse == null) { this.mUniverse = aEvent.world; -- cgit