diff options
author | Glease <4586901+Glease@users.noreply.github.com> | 2022-03-14 14:21:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-14 07:21:25 +0100 |
commit | 34a94189cf413164d2364dad26325688bc8128e6 (patch) | |
tree | 1e36040a988261d9fd95e5098fc2e49095c88a8e /src/main/java/gregtech/common | |
parent | bb924f35d8e8c9ce58f5667e2df03ac02a4215b0 (diff) | |
download | GT5-Unofficial-34a94189cf413164d2364dad26325688bc8128e6.tar.gz GT5-Unofficial-34a94189cf413164d2364dad26325688bc8128e6.tar.bz2 GT5-Unofficial-34a94189cf413164d2364dad26325688bc8128e6.zip |
save config late (#982)
Diffstat (limited to 'src/main/java/gregtech/common')
-rw-r--r-- | src/main/java/gregtech/common/GT_Proxy.java | 9 |
1 files changed, 8 insertions, 1 deletions
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; |