mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-17 11:05:15 +00:00
Cleanup of common constructs
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user