From 5fd4e5a088edbb5f8630daf77d9725357d664764 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 9 May 2024 14:50:47 -0400 Subject: [PATCH] Early exit for no avail slots --- src/engine/gameManager/ForgeManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index 063bba1d..6bad092e 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -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