mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-20 12:19:55 +00:00
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:
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));
|
||||
|
||||
Reference in new issue
Block a user