diff options
author | botn365 <42187820+botn365@users.noreply.github.com> | 2020-12-21 06:56:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-21 06:56:42 +0100 |
commit | b7c77e1a25b3bc613eaca549cd72c13a0bbfa234 (patch) | |
tree | 5f6cf4a8f7c2392187d767d333b54970fc660082 /src/main | |
parent | 229853670ea9dd82b406fdbf1c75267c52140c73 (diff) | |
download | GT5-Unofficial-b7c77e1a25b3bc613eaca549cd72c13a0bbfa234.tar.gz GT5-Unofficial-b7c77e1a25b3bc613eaca549cd72c13a0bbfa234.tar.bz2 GT5-Unofficial-b7c77e1a25b3bc613eaca549cd72c13a0bbfa234.zip |
attempt fix cme on gt block update
attempt to fix a concurentModificationexeption crash when having large gt block updates
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/gregtech/api/threads/GT_Runnable_MachineBlockUpdate.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/gregtech/api/threads/GT_Runnable_MachineBlockUpdate.java b/src/main/java/gregtech/api/threads/GT_Runnable_MachineBlockUpdate.java index ee56a0b0c0..6e57ef486e 100644 --- a/src/main/java/gregtech/api/threads/GT_Runnable_MachineBlockUpdate.java +++ b/src/main/java/gregtech/api/threads/GT_Runnable_MachineBlockUpdate.java @@ -55,8 +55,10 @@ public class GT_Runnable_MachineBlockUpdate implements Runnable { private static boolean isEnabled = true; public static void setMachineUpdateValues(World aWorld, int aX, int aY, int aZ) { - if (isEnabled) + if (isEnabled) { + aWorld.getTileEntity(aX, aY, aZ); EXECUTOR_SERVICE.submit(new GT_Runnable_MachineBlockUpdate(aWorld, aX, aY, aZ)); + } } public static void initExecutorService() { |