From cc324777d10b550f32bb1f14afeb3b1e3da3a379 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 20 Apr 2024 15:54:31 -0400 Subject: [PATCH] Warehouse withdraws are persisted --- src/engine/gameManager/ForgeManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index 59bdb421..4057df99 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -378,6 +378,7 @@ public enum ForgeManager implements Runnable { return false; 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; }