From 22caf14866338c52bb057a93ce141661d76e8e58 Mon Sep 17 00:00:00 2001 From: hoorigan Date: Mon, 30 Oct 2017 21:07:27 -0400 Subject: [PATCH] Fixed math error on line 577 Needs to be greater than, since condition is less than or equal to. My bad. --- .../java/com/gmail/nossr50/skills/fishing/FishingManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java b/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java index 05621fa34..1b4988b7c 100644 --- a/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java +++ b/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java @@ -574,7 +574,7 @@ public class FishingManager extends SkillManager { if (diceRoll <= dropRate) { // Make sure enchanted books always get some kind of enchantment. --hoorigan if (treasureDrop.getType() == Material.ENCHANTED_BOOK) { - diceRoll = dropRate; + diceRoll = dropRate + 1; continue; } fishingEnchantments = TreasureConfig.getInstance().fishingEnchantments.get(rarity);