Early exit for no avail slots

This commit is contained in:
MagicBot committed 2024-05-09 14:50:47 -04:00
1 parent b01b62ac3d
commit 5fd4e5a088
1 file changed
+3
+3
View File
@@ -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