Update to junk handling
This commit is contained in:
1 parent
111ba02289
commit
0782814c8e
1 file changed
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user