Minor cleanup

This commit is contained in:
2024-04-23 13:40:51 -04:00
parent 4e05c2ab74
commit 2607962038
+3 -3
View File
@@ -130,11 +130,11 @@ public enum ForgeManager implements Runnable {
if (!workOrder.multiple_slot_request && workOrder.total_to_produce == 0)
workOrder.total_to_produce = 1;
workOrder.total_to_produce *= workOrder.slots_used;
workOrder.production_cost = calcProductionCost(workOrder);
// Set total cost for this production run
workOrder.total_to_produce *= workOrder.slots_used;
workOrder.production_cost = calcProductionCost(workOrder);
workOrder.production_cost_total.putAll(workOrder.production_cost);
workOrder.production_cost_total.forEach((key, value) -> workOrder.production_cost_total.put(key, value * workOrder.total_to_produce));