|
|
|
@ -388,7 +388,7 @@ public enum ForgeManager implements Runnable {
@@ -388,7 +388,7 @@ public enum ForgeManager implements Runnable {
|
|
|
|
|
if (warehouse == null) |
|
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
workOrder.production_cost_total.forEach((key, value) -> warehouse.resources.compute(key, (k, v) -> warehouse.resources.get(key) - value)); |
|
|
|
|
workOrder.production_cost_total.forEach((key, value) -> warehouse.resources.put(key, warehouse.resources.get(key) - value)); |
|
|
|
|
DbManager.WarehouseQueries.UPDATE_WAREHOUSE(warehouse); |
|
|
|
|
} |
|
|
|
|
return true; |
|
|
|
|