Cleanup: null checks in doUpdate()

They are not needed, the code calling doUpdate() would NPE if worldObj
was ever null at this point.
This commit is contained in:
HenryLoenwind committed 2015-04-19 11:21:57 +02:00
1 parent 5923e62950
commit 30ac16d829
11 files changed
+7 -26

No files matched your search

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