From 89c01e8244c49482d064dca01f2feb16efdec371 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 8 Jul 2024 21:20:31 -0500 Subject: [PATCH] random item generation fix --- src/engine/loot/ItemTableEntry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/loot/ItemTableEntry.java b/src/engine/loot/ItemTableEntry.java index 6115bc65..df1a6f45 100644 --- a/src/engine/loot/ItemTableEntry.java +++ b/src/engine/loot/ItemTableEntry.java @@ -52,7 +52,7 @@ public class ItemTableEntry { itemTableEntryList = LootManager._itemTables.get(itemTable); if(itemTableEntryList != null && itemTableEntryList.size() > 0){ - id = itemTableEntryList.get(ThreadLocalRandom.current().nextInt(0,itemTableEntryList.size() - 1)).cacheID; + id = itemTableEntryList.get(ThreadLocalRandom.current().nextInt(1,itemTableEntryList.size() - 1)).cacheID; } return id; }