mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-21 04:22:32 +00:00
Fix #461 Disable powered machines on a direct redstone signal
This commit is contained in:
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++;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user