Update to single item rolling config

This commit is contained in:
2024-04-23 13:12:49 -04:00
parent d999d00755
commit 9102fe1f6c
+7
View File
@@ -124,6 +124,13 @@ public enum ForgeManager implements Runnable {
workOrder.slots_used = calcAvailableSlots(workOrder);
workOrder.total_produced = 0;
// Single item configuration
if (workOrder.multiple_slot_request == false &&
workOrder.total_to_produce == 0)
workOrder.total_to_produce = 1;
workOrder.total_to_produce *= workOrder.slots_used;
workOrder.production_cost = calcProductionCost(workOrder);