diff --git a/src/engine/gameManager/LootManager.java b/src/engine/gameManager/LootManager.java index e7bd9d1e..ab4397c7 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -360,16 +360,16 @@ public enum LootManager { if(genericIB.isVorg()){ if(genericIB.isClothArmor()){ //get random cloth piece - genericIB = ItemBase.getItemBase(vorg_cloth_uuids.get(ThreadLocalRandom.current().nextInt(0,vorg_cloth_uuids.size() - 1))); + genericIB = ItemBase.getItemBase(vorg_cloth_uuids.get(ThreadLocalRandom.current().nextInt(1,vorg_cloth_uuids.size()) - 1)); } else if(genericIB.isHeavyArmor()){ //get random heavy armor piece - genericIB = ItemBase.getItemBase(vorg_ha_uuids.get(ThreadLocalRandom.current().nextInt(0,vorg_ha_uuids.size() - 1))); + genericIB = ItemBase.getItemBase(vorg_ha_uuids.get(ThreadLocalRandom.current().nextInt(1,vorg_ha_uuids.size()) - 1)); } else if(genericIB.isMediumArmor()){ //get random medium armor piece - genericIB = ItemBase.getItemBase(vorg_ma_uuids.get(ThreadLocalRandom.current().nextInt(0,vorg_ma_uuids.size() - 1))); + genericIB = ItemBase.getItemBase(vorg_ma_uuids.get(ThreadLocalRandom.current().nextInt(1,vorg_ma_uuids.size()) - 1)); } else if(genericIB.isLightArmor()){ //get random light armor piece - genericIB = ItemBase.getItemBase(vorg_la_uuids.get(ThreadLocalRandom.current().nextInt(0,vorg_la_uuids.size() - 1))); + genericIB = ItemBase.getItemBase(vorg_la_uuids.get(ThreadLocalRandom.current().nextInt(1,vorg_la_uuids.size()) - 1)); } mob.spawnTime = ThreadLocalRandom.current().nextInt(300,2700); }