Browse Source

Remove from dbManager cache

combat-2
MagicBot 6 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 {
// Remove any cooking items from collections // Remove any cooking items from collections
// to ensure we don't leak memory. // to ensure we don't leak memory.
for (Item item : workOrder.cooking) for (Item item : workOrder.cooking) {
DbManager.removeFromCache(item);
ForgeManager.itemWorkOrderLookup.remove(item); ForgeManager.itemWorkOrderLookup.remove(item);
}
DbManager.WarehouseQueries.DELETE_WORKORDER(workOrder); DbManager.WarehouseQueries.DELETE_WORKORDER(workOrder);
} }

Loading…
Cancel
Save