Browse Source

Window refresh update

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

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

@ -131,7 +131,8 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler { @@ -131,7 +131,8 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler {
Item virtualItem = ForgeManager.inMemoryItemLookup.get(itemUUID);
WorkOrder workOrder = ForgeManager.itemWorkOrderLookup.get(virtualItem);
// Refresh the window
// Refresh the window. SetPrice is used only to force a window refresh.
// What controls items displayed are the contents of the workOrders. (ManageNPCMsg)
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);

Loading…
Cancel
Save