diff options
| author | Technus <daniel112092@gmail.com> | 2020-04-15 19:01:06 +0200 |
|---|---|---|
| committer | Technus <daniel112092@gmail.com> | 2020-04-15 19:01:06 +0200 |
| commit | 4f30ef0f1abcb85d05170c769b757c3443e10d2b (patch) | |
| tree | 1f7e5fa6ec36725c0e3c5f4897d3c0cdd6217aa5 /src/main/java/gregtech/GT_Mod.java | |
| parent | 9b05c6573762117ab1b60ef195e8be321b6e2bb8 (diff) | |
| download | GT5-Unofficial-4f30ef0f1abcb85d05170c769b757c3443e10d2b.tar.gz GT5-Unofficial-4f30ef0f1abcb85d05170c769b757c3443e10d2b.tar.bz2 GT5-Unofficial-4f30ef0f1abcb85d05170c769b757c3443e10d2b.zip | |
Refactor to fixed thread pool executor
Use actually something made for this task...
Diffstat (limited to 'src/main/java/gregtech/GT_Mod.java')
| -rw-r--r-- | src/main/java/gregtech/GT_Mod.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/gregtech/GT_Mod.java b/src/main/java/gregtech/GT_Mod.java index 9272ed20e2..22b677337e 100644 --- a/src/main/java/gregtech/GT_Mod.java +++ b/src/main/java/gregtech/GT_Mod.java @@ -1189,7 +1189,7 @@ 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(); + GT_Runnable_MachineBlockUpdate.initExecutorService(); } public boolean isServerSide() { @@ -1232,7 +1232,6 @@ public class GT_Mod implements IGT_Mod { @Mod.EventHandler public void onServerStopping(FMLServerStoppingEvent aEvent) { - for (Runnable tRunnable : GregTech_API.sBeforeGTServerstop) { try { tRunnable.run(); @@ -1316,7 +1315,7 @@ public class GT_Mod implements IGT_Mod { } } //Interrupt IDLE Threads to close down cleanly - GT_Runnable_MachineBlockUpdate.getINSTANCETHREAD().interrupt(); + GT_Runnable_MachineBlockUpdate.shutdownExecutorService(); } private void addSolidFakeLargeBoilerFuels() { |
