|
|
@ -37,6 +37,7 @@ public enum ForgeManager implements Runnable { |
|
|
|
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<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<>(); |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
|
|
|
|
|
|
|
@ -317,6 +318,7 @@ public enum ForgeManager implements Runnable { |
|
|
|
workOrder.cooking.remove(memoryItem); |
|
|
|
workOrder.cooking.remove(memoryItem); |
|
|
|
inMemoryItemLookup.remove(memoryItem.objectUUID); |
|
|
|
inMemoryItemLookup.remove(memoryItem.objectUUID); |
|
|
|
vendorItemLookup.get(workOrder.vendor).remove(memoryItem); |
|
|
|
vendorItemLookup.get(workOrder.vendor).remove(memoryItem); |
|
|
|
|
|
|
|
itemWorkOrderLookup.remove(memoryItem); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
@ -334,6 +336,7 @@ public enum ForgeManager implements Runnable { |
|
|
|
vendorItemLookup.computeIfAbsent(workOrder.vendor, k -> new ArrayList<>()); |
|
|
|
vendorItemLookup.computeIfAbsent(workOrder.vendor, k -> new ArrayList<>()); |
|
|
|
vendorItemLookup.get(workOrder.vendor).add(forged_item); |
|
|
|
vendorItemLookup.get(workOrder.vendor).add(forged_item); |
|
|
|
vendorWorkOrderLookup.get(workOrder.vendor).add(workOrder); |
|
|
|
vendorWorkOrderLookup.get(workOrder.vendor).add(workOrder); |
|
|
|
|
|
|
|
itemWorkOrderLookup.put(forged_item, workOrder); |
|
|
|
|
|
|
|
|
|
|
|
// Update NPC window
|
|
|
|
// Update NPC window
|
|
|
|
|
|
|
|
|
|
|
|