Browse Source

random item generation fix

lakebane-strongholds
FatBoy-DOTC 5 months ago
parent
commit
89c01e8244
  1. 2
      src/engine/loot/ItemTableEntry.java

2
src/engine/loot/ItemTableEntry.java

@ -52,7 +52,7 @@ public class ItemTableEntry {
itemTableEntryList = LootManager._itemTables.get(itemTable); itemTableEntryList = LootManager._itemTables.get(itemTable);
if(itemTableEntryList != null && itemTableEntryList.size() > 0){ 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; return id;
} }

Loading…
Cancel
Save