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

@@ -134,11 +134,6 @@ public class TileHyperCube extends TileEntityEio implements IInternalPowerHandle
recieveBuffer = new ItemRecieveBuffer(this);
}
@Override
public BlockCoord getLocation() {
return new BlockCoord(this);
}
@Override
public RedstoneControlMode getRedstoneControlMode() {
return redstoneControlMode;
@@ -308,7 +303,7 @@ public class TileHyperCube extends TileEntityEio implements IInternalPowerHandle
requiresClientSync |= prevRedCheck != redstoneCheckPassed;
boolean powerChanged = lastSyncPowerStored != storedEnergyRF && worldObj.getTotalWorldTime() % 21 == 0;
boolean powerChanged = lastSyncPowerStored != storedEnergyRF && shouldDoWorkThisTick(21);
if(powerChanged) {
lastSyncPowerStored = storedEnergyRF;
EnderIO.packetPipeline.sendToAllAround(new PacketStoredPower(this), this);