Fixed machines working without power

This commit is contained in:
mezz committed 2014-09-21 21:09:48 -07:00
1 parent e89e8b4f9d
commit 4e8a25d55c
1 file changed
+1 -1
@@ -127,7 +127,7 @@ public abstract class TilePowered extends TileBase implements IRenderableMachine
ic2registered = true;
}
if (workCounter < WORK_CYCLES) {
if (workCounter < WORK_CYCLES && energyStorage.getEnergyStored() >= ENERGY_PER_USE) {
energyStorage.modifyEnergyStored(-ENERGY_PER_USE); //TODO Make it continuous usage while doing work
workCounter++;
}