Browse Source

Warehouse withdraws are persisted

combat-2
MagicBot 8 months ago
parent
commit
cc324777d1
  1. 1
      src/engine/gameManager/ForgeManager.java

1
src/engine/gameManager/ForgeManager.java

@ -378,6 +378,7 @@ public enum ForgeManager implements Runnable {
return false; return false;
workOrder.production_cost_total.forEach((key, value) -> warehouse.resources.compute(key, (k, v) -> warehouse.resources.get(key) - value)); workOrder.production_cost_total.forEach((key, value) -> warehouse.resources.compute(key, (k, v) -> warehouse.resources.get(key) - value));
DbManager.WarehouseQueries.UPDATE_WAREHOUSE(warehouse);
} }
return true; return true;
} }

Loading…
Cancel
Save