From 86aeada330f4a203cee59ac4512d80fbe058214b Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 27 Nov 2016 19:04:22 +0100 Subject: [PATCH] fix an exception on loading some tileentities --- .../de/ellpeck/actuallyadditions/mod/tile/TileEntityBase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityBase.java b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityBase.java index 919eedefc..92ee8a31f 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityBase.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityBase.java @@ -164,7 +164,7 @@ public abstract class TileEntityBase extends TileEntity implements ITickable{ } public final void sendUpdate(){ - if(!this.world.isRemote){ + if(this.world != null && !this.world.isRemote){ NBTTagCompound compound = new NBTTagCompound(); this.writeSyncableNBT(compound, NBTType.SYNC);