From 2e83b8c693bc6e0888676ec2316f75a5a1d4a9ae Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 13 Apr 2024 06:42:21 -0400 Subject: [PATCH] Better context in name --- src/engine/gameManager/ForgeManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index 9d0ceca6..044c4cc5 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -149,7 +149,7 @@ public enum ForgeManager implements Runnable { return false; } - if (calcCostOverflow(workOrder).isEmpty() == false) { + if (!calcCostOverrun(workOrder).isEmpty()) { if (playerCharacter != null) ErrorPopupMsg.sendErrorPopup(playerCharacter, 18); //18: You can't really afford that return false; @@ -224,7 +224,7 @@ public enum ForgeManager implements Runnable { return production_cost; } - public static HashMap calcCostOverflow(WorkOrder workOrder) { + public static HashMap calcCostOverrun(WorkOrder workOrder) { HashMap costMap = new HashMap<>(); Warehouse warehouse;