mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-20 12:19:55 +00:00
null check worldObj in TE updateBlock()
why do I have to do this again?
This commit is contained in:
1 parent
4f5961e08b
commit
d8eba6f6fd
1 file changed
+3
-1
@@ -40,6 +40,8 @@ public abstract class TileEntityEio extends TileEntity {
|
||||
protected abstract void readCustomNBT(NBTTagCompound root);
|
||||
|
||||
protected void updateBlock() {
|
||||
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
if (worldObj != null) {
|
||||
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user