From ea2f6f4593cdb1fd9dc851059aa399a13d4e2004 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 11 May 2024 09:37:23 -0400 Subject: [PATCH] Remove from dbManager cache --- src/engine/gameManager/BuildingManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/gameManager/BuildingManager.java b/src/engine/gameManager/BuildingManager.java index 9032880c..74357f84 100644 --- a/src/engine/gameManager/BuildingManager.java +++ b/src/engine/gameManager/BuildingManager.java @@ -342,8 +342,10 @@ public enum BuildingManager { // Remove any cooking items from collections // to ensure we don't leak memory. - for (Item item : workOrder.cooking) + for (Item item : workOrder.cooking) { + DbManager.removeFromCache(item); ForgeManager.itemWorkOrderLookup.remove(item); + } DbManager.WarehouseQueries.DELETE_WORKORDER(workOrder); }