Multiple item workOrder work

This commit is contained in:
2024-04-13 09:10:56 -04:00
parent f6e1c78b0b
commit 09c96c772e
+2 -2
View File
@@ -100,9 +100,9 @@ public enum ForgeManager implements Runnable {
workOrder.production_cost_total.putAll(workOrder.production_cost);
workOrder.production_cost_total.forEach((key, value) -> workOrder.production_cost_total.compute(key, (k, v) -> v * workOrder.total_to_produce));
// Single item rolls are total_to_produce of 0;
// Single item rolls are msg_size of 0;
if (workOrder.slots_used > 0 && workOrder.total_to_produce == 0)
if (workOrder.slots_used > 0 && workOrder.msg_size == 0)
workOrder.slots_used = 1;
// Create in-memory items and add to collections