Browse Source

Comment update

combat-2
MagicBot 7 months ago
parent
commit
9de1afa0fd
  1. 4
      src/engine/gameManager/ForgeManager.java

4
src/engine/gameManager/ForgeManager.java

@ -378,8 +378,6 @@ public enum ForgeManager implements Runnable { @@ -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 { @@ -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);
}

Loading…
Cancel
Save