Browse Source

Null check for vendor workorder lookup.

combat-2
MagicBot 7 months ago
parent
commit
d2d655a839
  1. 3
      src/engine/gameManager/NPCManager.java

3
src/engine/gameManager/NPCManager.java

@ -525,6 +525,9 @@ public enum NPCManager {
ConcurrentHashMap.KeySetView<WorkOrder, Boolean> vendorWorkOrders = ForgeManager.vendorWorkOrderLookup.get(npc); ConcurrentHashMap.KeySetView<WorkOrder, Boolean> vendorWorkOrders = ForgeManager.vendorWorkOrderLookup.get(npc);
if (vendorWorkOrders == null)
return itemList;
for (WorkOrder workOrder : vendorWorkOrders) for (WorkOrder workOrder : vendorWorkOrders)
itemList.addAll(workOrder.cooking); itemList.addAll(workOrder.cooking);

Loading…
Cancel
Save