mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-14 01:04:12 +00:00
Fixed machines working without power
This commit is contained in:
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++;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user