diff options
author | bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com> | 2020-04-14 18:24:58 +0200 |
---|---|---|
committer | bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com> | 2020-04-14 18:24:58 +0200 |
commit | 9b05c6573762117ab1b60ef195e8be321b6e2bb8 (patch) | |
tree | 3f0ce41d73b1fd15a36db8cc8b60bbe47bc55926 /src/main/java/gregtech/GT_Mod.java | |
parent | 78ab6155eeafa0e7b4494de3967343921d15eb82 (diff) | |
download | GT5-Unofficial-9b05c6573762117ab1b60ef195e8be321b6e2bb8.tar.gz GT5-Unofficial-9b05c6573762117ab1b60ef195e8be321b6e2bb8.tar.bz2 GT5-Unofficial-9b05c6573762117ab1b60ef195e8be321b6e2bb8.zip |
crashfix
+ Added a new Thread every time a world is loaded
Signed-off-by: bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>
Diffstat (limited to 'src/main/java/gregtech/GT_Mod.java')
-rw-r--r-- | src/main/java/gregtech/GT_Mod.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/gregtech/GT_Mod.java b/src/main/java/gregtech/GT_Mod.java index f70dba6a18..9272ed20e2 100644 --- a/src/main/java/gregtech/GT_Mod.java +++ b/src/main/java/gregtech/GT_Mod.java @@ -1188,6 +1188,8 @@ public class GT_Mod implements IGT_Mod { } aEvent.registerServerCommand(new GT_Command()); + //Sets a new Machine Block Update Thread everytime a world is loaded + GT_Runnable_MachineBlockUpdate.initThread(); } public boolean isServerSide() { @@ -1313,6 +1315,7 @@ public class GT_Mod implements IGT_Mod { e.printStackTrace(GT_Log.err); } } + //Interrupt IDLE Threads to close down cleanly GT_Runnable_MachineBlockUpdate.getINSTANCETHREAD().interrupt(); } |