From fc3a0eaf0cd90bfb189a52569dcdb6f5df299d30 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 13 Apr 2024 06:48:58 -0400 Subject: [PATCH] Forge must be protected --- src/engine/gameManager/ForgeManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index 044c4cc5..6f521887 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -155,7 +155,9 @@ public enum ForgeManager implements Runnable { return false; } - return true; + // Forge must be protected in order to access warehouse. + + return workOrder.vendor.building.protectionState.equals(mbEnums.ProtectionState.PROTECTED); } public static long calcRollingDuration(WorkOrder workOrder) {