#1412 Nullpointer Exception in console

This commit is contained in:
CrazyPants committed 2014-12-15 21:22:28 +08:00
1 parent b885de7765
commit c0ec750ae4
2 files changed
+2 -1

No files matched your search

@@ -30,7 +30,7 @@ public abstract class AbstractPoweredMachineEntity extends AbstractMachineEntity
super.updateEntity();
if(worldObj == null) { // sanity check
if(worldObj == null || worldObj.isRemote) { // sanity check
return;
}
boolean powerChanged = (lastSyncPowerStored != storedEnergyRF && worldObj.getTotalWorldTime() % 5 == 0);