From ec47e245490194340bd517a684297946532a2a9d Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 13 Apr 2024 12:26:39 -0400 Subject: [PATCH] Not yet set when validating. --- src/engine/gameManager/ForgeManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index 43809238..fc507586 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -137,7 +137,7 @@ public enum ForgeManager implements Runnable { // Forge must be protected in order to access warehouse. - if (workOrder.production_cost_total.size() > 1) + if (calcProductionCost(workOrder).size() > 1) if (!workOrder.vendor.building.protectionState.equals(mbEnums.ProtectionState.PROTECTED)) { if (playerCharacter != null) ErrorPopupMsg.sendErrorPopup(playerCharacter, 193); //193: Production denied: This building must be protected to gain access to warehouse