Browse Source

Remove from dbManager cache

combat-2
MagicBot 8 months ago
parent
commit
ea2f6f4593
  1. 4
      src/engine/gameManager/BuildingManager.java

4
src/engine/gameManager/BuildingManager.java

@ -342,8 +342,10 @@ public enum BuildingManager { @@ -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);
}

Loading…
Cancel
Save