Early exit for no avail slots
This commit is contained in:
1 parent
b01b62ac3d
commit
5fd4e5a088
1 file changed
+3
@@ -148,6 +148,9 @@ public enum ForgeManager implements Runnable {
|
||||
workOrder.completionTime = System.currentTimeMillis() + workOrder.rollingDuration;
|
||||
workOrder.slots_used = calcAvailableSlots(workOrder);
|
||||
|
||||
if (workOrder.slots_used == 0)
|
||||
return 58;
|
||||
|
||||
workOrder.total_produced = 0;
|
||||
|
||||
// Single item configuration
|
||||
|
||||
Reference in new issue
Block a user