Browse Source

Update to junk handling

combat-2
MagicBot 7 months ago
parent
commit
0782814c8e
  1. 3
      src/engine/net/client/handlers/ItemProductionMsgHandler.java

3
src/engine/net/client/handlers/ItemProductionMsgHandler.java

@ -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;
} }

Loading…
Cancel
Save