From ded3b08080ec097b76048c00c47a123e8f03e279 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 29 Dec 2024 19:22:41 -0600 Subject: [PATCH] fixed random rune drop chance --- 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 c75fb7d7..b24f5633 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() > 1){ - id = itemTableEntryList.get(ThreadLocalRandom.current().nextInt(0,itemTableEntryList.size() - 1)).cacheID; + id = itemTableEntryList.get(ThreadLocalRandom.current().nextInt(0, itemTableEntryList.size())).cacheID; } return id; }