Browse Source

Early exit for no avail slots

combat-2
MagicBot 8 months ago
parent
commit
5fd4e5a088
  1. 3
      src/engine/gameManager/ForgeManager.java

3
src/engine/gameManager/ForgeManager.java

@ -148,6 +148,9 @@ public enum ForgeManager implements Runnable {
workOrder.completionTime = System.currentTimeMillis() + workOrder.rollingDuration; workOrder.completionTime = System.currentTimeMillis() + workOrder.rollingDuration;
workOrder.slots_used = calcAvailableSlots(workOrder); workOrder.slots_used = calcAvailableSlots(workOrder);
if (workOrder.slots_used == 0)
return 58;
workOrder.total_produced = 0; workOrder.total_produced = 0;
// Single item configuration // Single item configuration

Loading…
Cancel
Save