Browse Source

Simplified lambda function

combat-2
MagicBot 7 months ago
parent
commit
9efba13b03
  1. 2
      src/engine/gameManager/ForgeManager.java

2
src/engine/gameManager/ForgeManager.java

@ -388,7 +388,7 @@ public enum ForgeManager implements Runnable {
if (warehouse == null) if (warehouse == null)
return false; 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); DbManager.WarehouseQueries.UPDATE_WAREHOUSE(warehouse);
} }
return true; return true;

Loading…
Cancel
Save