aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/GT_Mod.java
diff options
context:
space:
mode:
authorTechnus <daniel112092@gmail.com>2020-04-15 19:01:06 +0200
committerTechnus <daniel112092@gmail.com>2020-04-15 19:09:15 +0200
commit9bef8b3a8a8270db9c289c05c998e71273ca20fc (patch)
treed7fe3a40384a96eca093ada09bc133eef03c53ad /src/main/java/gregtech/GT_Mod.java
parent9b05c6573762117ab1b60ef195e8be321b6e2bb8 (diff)
downloadGT5-Unofficial-9bef8b3a8a8270db9c289c05c998e71273ca20fc.tar.gz
GT5-Unofficial-9bef8b3a8a8270db9c289c05c998e71273ca20fc.tar.bz2
GT5-Unofficial-9bef8b3a8a8270db9c289c05c998e71273ca20fc.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.java5
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() {