From 0782814c8e89d5595728479bde3e583ba6d4877f Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 27 Apr 2024 08:14:31 -0400 Subject: [PATCH] Update to junk handling --- src/engine/net/client/handlers/ItemProductionMsgHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/net/client/handlers/ItemProductionMsgHandler.java b/src/engine/net/client/handlers/ItemProductionMsgHandler.java index 622f61e7..6efb1bd8 100644 --- a/src/engine/net/client/handlers/ItemProductionMsgHandler.java +++ b/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 // 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; }