Allow for machines that have tasks that stall at the end

This allows machines to have tasks that are complete but cannot be
finished. With this they can sit there and not use power.
This commit is contained in:
HenryLoenwind committed 2015-09-08 15:36:58 +02:00
1 parent 504e74636b
commit 3ee13a730e
1 file changed
+1 -1
@@ -134,7 +134,7 @@ public abstract class AbstractPoweredTaskEntity extends AbstractPowerConsumerEnt
if(currentTask == null || !hasPower()) {
return false;
}
if(redstoneChecksPassed) {
if (redstoneChecksPassed && !currentTask.isComplete()) {
usePower();
}
// then check if we are done