diff options
author | bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com> | 2020-05-12 09:24:39 +0200 |
---|---|---|
committer | bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com> | 2020-05-12 09:24:39 +0200 |
commit | 9eca09b4ad46b519e337838a4a6a7c0a378fb56d (patch) | |
tree | 35c5f285748a3bd0791ada1caf70d341c323b881 /src/main/java/gregtech/api | |
parent | d83f531c94d2ef88403213c86cfb6b3e5cb8a4d5 (diff) | |
download | GT5-Unofficial-9eca09b4ad46b519e337838a4a6a7c0a378fb56d.tar.gz GT5-Unofficial-9eca09b4ad46b519e337838a4a6a7c0a378fb56d.tar.bz2 GT5-Unofficial-9eca09b4ad46b519e337838a4a6a7c0a378fb56d.zip |
Fixed NPE during Worldgen
Signed-off-by: bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>
Diffstat (limited to 'src/main/java/gregtech/api')
-rw-r--r-- | src/main/java/gregtech/api/GregTech_API.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/gregtech/api/GregTech_API.java b/src/main/java/gregtech/api/GregTech_API.java index 1cc19e7de4..932d267a34 100644 --- a/src/main/java/gregtech/api/GregTech_API.java +++ b/src/main/java/gregtech/api/GregTech_API.java @@ -389,7 +389,7 @@ public class GregTech_API { * @param aZ is the Z-Coord of the update causing Block */ public static boolean causeMachineUpdate(World aWorld, int aX, int aY, int aZ) { - if (!aWorld.isRemote) { + if (aWorld != null && !aWorld.isRemote) { //World might be null during Worldgen GT_Runnable_MachineBlockUpdate.setMachineUpdateValues(aWorld, aX, aY, aZ); return true; } |