diff --git a/src/engine/loot/ItemTableEntry.java b/src/engine/loot/ItemTableEntry.java index 0e674eb5..6115bc65 100644 --- a/src/engine/loot/ItemTableEntry.java +++ b/src/engine/loot/ItemTableEntry.java @@ -51,7 +51,7 @@ public class ItemTableEntry { itemTableEntryList = LootManager._itemTables.get(itemTable); - if(itemTableEntryList != null){ + if(itemTableEntryList != null && itemTableEntryList.size() > 0){ id = itemTableEntryList.get(ThreadLocalRandom.current().nextInt(0,itemTableEntryList.size() - 1)).cacheID; } return id;