#2665 Reduce frequency of redstone checks in light TE

This commit is contained in:
tterrag1098 committed 2015-07-22 02:05:48 -04:00
1 parent 6f28b58bee
commit f87f8cb1ff
1 file changed
+1 -5
@@ -110,7 +110,7 @@ public class TileElectricLight extends TileEntityEio implements IInternalPowerRe
return;
}
boolean isActivated = hasRedstoneSignal() ^ isInvereted;
boolean isActivated = init ? isPoweredRedstone() ^ isInvereted : lastActive;
if(requiresPower) {
if(isActivated) {
@@ -368,10 +368,6 @@ public class TileElectricLight extends TileEntityEio implements IInternalPowerRe
return energyStoredRF >= RF_USE_PER_TICK;
}
private boolean hasRedstoneSignal() {
return worldObj.getStrongestIndirectPower(xCoord, yCoord, zCoord) > 0;
}
// RF Power
@Override