fix NPE on reschedule
This commit is contained in:
@@ -367,7 +367,9 @@ public class CraftingTask implements ICraftingTask {
|
|||||||
for (ICraftingStep step : mainSteps) {
|
for (ICraftingStep step : mainSteps) {
|
||||||
quantity += quantityPerRequest - step.getReceivedOutput(requested);
|
quantity += quantityPerRequest - step.getReceivedOutput(requested);
|
||||||
}
|
}
|
||||||
|
if (quantity > 0) {
|
||||||
calculate();
|
calculate();
|
||||||
|
}
|
||||||
network.sendCraftingMonitorUpdate();
|
network.sendCraftingMonitorUpdate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user