Better context in name

This commit is contained in:
2024-04-13 06:42:21 -04:00
parent 44eafc3345
commit 2e83b8c693
+2 -2
View File
@@ -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<mbEnums.ResourceType, Integer> calcCostOverflow(WorkOrder workOrder) {
public static HashMap<mbEnums.ResourceType, Integer> calcCostOverrun(WorkOrder workOrder) {
HashMap<mbEnums.ResourceType, Integer> costMap = new HashMap<>();
Warehouse warehouse;