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