Update to junk handling
This commit is contained in:
@@ -418,7 +418,8 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler {
|
|||||||
// Update total_to_produce accounting for the slot being
|
// Update total_to_produce accounting for the slot being
|
||||||
// removed while workOrder is not completed.
|
// 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;
|
int itemsPerSlot = workOrder.total_to_produce / workOrder.slots_used;
|
||||||
workOrder.total_to_produce = workOrder.total_to_produce - itemsPerSlot;
|
workOrder.total_to_produce = workOrder.total_to_produce - itemsPerSlot;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user