Browse Source

Window refresh update

combat-2
MagicBot 8 months ago
parent
commit
adf686974d
  1. 5
      src/engine/net/client/handlers/ItemProductionMsgHandler.java

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

@ -133,6 +133,11 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler { @@ -133,6 +133,11 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler {
Item virtualItem = ForgeManager.inMemoryItemLookup.get(itemUUID);
WorkOrder workOrder = ForgeManager.itemWorkOrderLookup.get(virtualItem);
// Refresh the window
ItemProductionMsg outMsg = new ItemProductionMsg(workOrder.vendor.building, workOrder.vendor, virtualItem, mbEnums.ProductionActionType.CONFIRM_SETPRICE, true);
DispatchMessage.dispatchMsgToInterestArea(workOrder.vendor, outMsg, mbEnums.DispatchChannel.SECONDARY, 700, false, false);
workOrder.cooking.remove(virtualItem);
ForgeManager.itemWorkOrderLookup.remove(virtualItem);

Loading…
Cancel
Save