Update to junk handling

This commit is contained in:
2024-04-27 08:14:31 -04:00
parent 111ba02289
commit 0782814c8e
@@ -418,7 +418,8 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler {
// Update total_to_produce accounting for the slot being
// removed while workOrder is not completed.
if (workOrder.runCompleted == false) {
if (workOrder.runCompleted == false)
if (workOrder.multiple_slot_request && workOrder.slots_used > 1) {
int itemsPerSlot = workOrder.total_to_produce / workOrder.slots_used;
workOrder.total_to_produce = workOrder.total_to_produce - itemsPerSlot;
}