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

@@ -26,7 +26,7 @@ public class TileLightNode extends TileEntityEio {
if(worldObj.isRemote) {
return;
}
if(worldObj.getWorldTime() % 42 == 0) {
if(shouldDoWorkThisTick(42)) {
if(worldObj.getBlock(parentX, parentY, parentZ) != EnderIO.blockElectricLight) {
worldObj.setBlockToAir(xCoord, yCoord, zCoord);
}