fix NPE on reschedule

This commit is contained in:
way2muchnoise
2016-11-03 16:36:36 +01:00
parent 3e4d7b2384
commit d1f459cf7a

View File

@@ -367,7 +367,9 @@ public class CraftingTask implements ICraftingTask {
for (ICraftingStep step : mainSteps) {
quantity += quantityPerRequest - step.getReceivedOutput(requested);
}
calculate();
if (quantity > 0) {
calculate();
}
network.sendCraftingMonitorUpdate();
}
}