fix an exception on loading some tileentities

This commit is contained in:
Ellpeck 2016-11-27 19:04:22 +01:00
parent 000edcaacb
commit 86aeada330

View file

@ -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);