diff --git a/src/main/java/me/firephoenix/ps3minigames/util/GameUtil.java b/src/main/java/me/firephoenix/ps3minigames/util/GameUtil.java index f9a58ca..6926591 100644 --- a/src/main/java/me/firephoenix/ps3minigames/util/GameUtil.java +++ b/src/main/java/me/firephoenix/ps3minigames/util/GameUtil.java @@ -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())]; diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index e30deb3..e42d3dc 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -103,6 +103,13 @@ chest-loot: - WOOD_AXE#1 - GOLD_HELMET#1 - LEATHER_CHESTPLATE#1 + - GOLDEN_APPLE#1 + - IRON_BOOTS#1 + - IRON_CHESTPLATE#1 + - GOLD_CHESTPLATE#1 + - DIAMOND_PICKAXE#1 + - LEATHER_HELMET#1 + - IRON_HELMET#1 # Chest Loot Potions # Note: Only <=1.8 Items ! # https://dev.bukkit.org/projects/etshop/pages/potion-data-value-table OR https://minecraftitemids.com/types/potion