mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-24 05:54:27 +00:00
#2665 Reduce frequency of redstone checks in light TE
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user