Browse Source

Null check for vendor workorder lookup.

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

Loading…
Cancel
Save