mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-20 04:09:43 +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
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user