Comment update

This commit is contained in:
2024-04-23 12:15:26 -04:00
parent 9efba13b03
commit 9de1afa0fd
+2 -2
View File
@@ -378,8 +378,6 @@ public enum ForgeManager implements Runnable {
if (workOrder.production_cost_total.get(mbEnums.ResourceType.GOLD) > strongbox) {
// Deduct total cost from warehouse
if (workOrder.vendor.building.getCity() == null)
return false;
@@ -388,6 +386,8 @@ public enum ForgeManager implements Runnable {
if (warehouse == null)
return false;
// Deduct total cost from warehouse
workOrder.production_cost_total.forEach((key, value) -> warehouse.resources.put(key, warehouse.resources.get(key) - value));
DbManager.WarehouseQueries.UPDATE_WAREHOUSE(warehouse);
}