|
|
@ -35,7 +35,6 @@ public enum ForgeManager implements Runnable { |
|
|
|
private static final BlockingQueue<WorkOrder> forge = new DelayQueue<>(); |
|
|
|
private static final BlockingQueue<WorkOrder> forge = new DelayQueue<>(); |
|
|
|
public static final AtomicInteger wordOrderCounter = new AtomicInteger(0); |
|
|
|
public static final AtomicInteger wordOrderCounter = new AtomicInteger(0); |
|
|
|
public static final HashMap<Integer, Item> inMemoryItemLookup = new HashMap<>(); |
|
|
|
public static final HashMap<Integer, Item> inMemoryItemLookup = new HashMap<>(); |
|
|
|
public static final HashMap<NPC, ArrayList<Item>> vendorItemLookup = new HashMap<>(); |
|
|
|
|
|
|
|
public static final HashMap<NPC, ArrayList<WorkOrder>> vendorWorkOrderLookup = new HashMap<>(); |
|
|
|
public static final HashMap<NPC, ArrayList<WorkOrder>> vendorWorkOrderLookup = new HashMap<>(); |
|
|
|
public static final HashMap<Item, WorkOrder> itemWorkOrderLookup = new HashMap<>(); |
|
|
|
public static final HashMap<Item, WorkOrder> itemWorkOrderLookup = new HashMap<>(); |
|
|
|
|
|
|
|
|
|
|
@ -356,7 +355,6 @@ public enum ForgeManager implements Runnable { |
|
|
|
DispatchMessage.dispatchMsgToInterestArea(workOrder.vendor, outMsg, mbEnums.DispatchChannel.SECONDARY, 700, false, false); |
|
|
|
DispatchMessage.dispatchMsgToInterestArea(workOrder.vendor, outMsg, mbEnums.DispatchChannel.SECONDARY, 700, false, false); |
|
|
|
|
|
|
|
|
|
|
|
workOrder.cooking.remove(memoryItem); |
|
|
|
workOrder.cooking.remove(memoryItem); |
|
|
|
vendorItemLookup.get(workOrder.vendor).remove(memoryItem); |
|
|
|
|
|
|
|
itemWorkOrderLookup.remove(memoryItem); |
|
|
|
itemWorkOrderLookup.remove(memoryItem); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -375,8 +373,6 @@ public enum ForgeManager implements Runnable { |
|
|
|
|
|
|
|
|
|
|
|
workOrder.cooking.add(forged_item); |
|
|
|
workOrder.cooking.add(forged_item); |
|
|
|
inMemoryItemLookup.put(forged_item.objectUUID, forged_item); |
|
|
|
inMemoryItemLookup.put(forged_item.objectUUID, forged_item); |
|
|
|
vendorItemLookup.computeIfAbsent(workOrder.vendor, k -> new ArrayList<>()); |
|
|
|
|
|
|
|
vendorItemLookup.get(workOrder.vendor).add(forged_item); |
|
|
|
|
|
|
|
vendorWorkOrderLookup.get(workOrder.vendor).add(workOrder); |
|
|
|
vendorWorkOrderLookup.get(workOrder.vendor).add(workOrder); |
|
|
|
itemWorkOrderLookup.put(forged_item, workOrder); |
|
|
|
itemWorkOrderLookup.put(forged_item, workOrder); |
|
|
|
|
|
|
|
|
|
|
|