From d2d655a83954f70cb906f281c49b2ab56274d892 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 28 May 2024 18:31:16 -0400 Subject: [PATCH] Null check for vendor workorder lookup. --- src/engine/gameManager/NPCManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/engine/gameManager/NPCManager.java b/src/engine/gameManager/NPCManager.java index fa462105..3a501936 100644 --- a/src/engine/gameManager/NPCManager.java +++ b/src/engine/gameManager/NPCManager.java @@ -525,6 +525,9 @@ public enum NPCManager { ConcurrentHashMap.KeySetView vendorWorkOrders = ForgeManager.vendorWorkOrderLookup.get(npc); + if (vendorWorkOrders == null) + return itemList; + for (WorkOrder workOrder : vendorWorkOrders) itemList.addAll(workOrder.cooking);