Add more items to chests

This commit is contained in:
FirephoenixX02 2023-07-07 14:40:36 +02:00
parent 81f79f5ccd
commit c688fc4ba0
2 changed files with 8 additions and 1 deletions

View file

@ -120,7 +120,7 @@ public class GameUtil {
int randomSlot = getRandomInRange(0, slots);
Random random = new Random();
int chance = random.nextInt(10);
boolean potion = chance >= 1 && chance < 3;
boolean potion = (chance == 1 || chance == 2);
if (potion) {
ItemStack[] possiblePotions = getPossiblePotionsFromConfig("chest-loot-potions").toArray(new ItemStack[0]);
ItemStack randomPotion = possiblePotions[random.nextInt((int) Arrays.stream(possiblePotions).count())];