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;