|
|
@ -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); |
|
|
|
} |
|
|
|
} |
|
|
|