Cleanup of common constructs

This commit is contained in:
Henry Loenwind authored and HenryLoenwind committed 2015-03-18 21:44:48 +01:00
1 parent 31f193be2c
commit d7f9eb05fe
36 files changed
+160 -246

No files matched your search

@@ -130,11 +130,6 @@ public abstract class AbstractMachineEntity extends TileEntityEio implements ISi
return res;
}
@Override
public BlockCoord getLocation() {
return new BlockCoord(this);
}
public SlotDefinition getSlotDefinition() {
return slotDefinition;
}
@@ -281,7 +276,7 @@ public abstract class AbstractMachineEntity extends TileEntityEio implements ISi
redstoneStateDirty = false;
}
if(worldObj.getTotalWorldTime() % 5 == 0) {
if(shouldDoWorkThisTick(5)) {
requiresClientSync |= doSideIo();
}
@@ -330,7 +325,7 @@ public abstract class AbstractMachineEntity extends TileEntityEio implements ISi
if(slotDefinition.getNumOutputSlots() <= 0) {
return false;
}
if(worldObj.getTotalWorldTime() % 20 != 0) {
if(!shouldDoWorkThisTick(20)) {
return false;
}
@@ -366,7 +361,7 @@ public abstract class AbstractMachineEntity extends TileEntityEio implements ISi
if(slotDefinition.getNumInputSlots() <= 0) {
return false;
}
if(worldObj.getTotalWorldTime() % 20 != 0) {
if(!shouldDoWorkThisTick(20)) {
return false;
}