Fix #461 Disable powered machines on a direct redstone signal

This commit is contained in:
mezz committed 2015-02-15 17:58:20 -08:00
1 parent 1ac0cf5489
commit 042b36a350
1 file changed
+5
@@ -58,6 +58,11 @@ public abstract class TilePowered extends TileBase implements IRenderableMachine
return;
}
// Disable powered machines on a direct redstone signal
if (worldObj.getBlockPowerInput(xCoord, yCoord, zCoord) >= 15) {
return;
}
if (workCounter < WORK_CYCLES && energyManager.consumeEnergyToDoWork()) {
workCounter++;
}