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

@@ -233,10 +233,6 @@ public abstract class AbstractMachineEntity extends TileEntityEio implements ISi
@Override
public void doUpdate() {
if(worldObj == null) { // sanity check
return;
}
if(worldObj.isRemote) {
// check if the block on the client needs to update its texture
if(isActive() != lastActive) {