From 5cb08c1dc0a35a81b76b2731fbe3b72b9284abd8 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 13 Apr 2024 06:53:36 -0400 Subject: [PATCH] Forge must be protected --- src/engine/gameManager/ForgeManager.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index 6f521887..2bae9023 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -157,7 +157,13 @@ public enum ForgeManager implements Runnable { // Forge must be protected in order to access warehouse. - return workOrder.vendor.building.protectionState.equals(mbEnums.ProtectionState.PROTECTED); + if (workOrder.production_cost_total.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 + } + + return true; } public static long calcRollingDuration(WorkOrder workOrder) {