From e9913a66a7591208b63e1bf700519ea2071f6140 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 27 Jul 2023 23:17:41 -0500 Subject: [PATCH] fixed mob AI crash --- src/engine/loot/LootManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/engine/loot/LootManager.java b/src/engine/loot/LootManager.java index 8ecb60c7..08c49b9a 100644 --- a/src/engine/loot/LootManager.java +++ b/src/engine/loot/LootManager.java @@ -156,6 +156,9 @@ public class LootManager { return; } ItemTableRow tableRow = itemTables.get(126).getRowForRange(roll2); + if(tableRow == null){ + return; + } int itemUUID = tableRow.cacheID; if (itemUUID == 0) { return;