mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
Fixed math error on line 577
Needs to be greater than, since condition is less than or equal to. My bad.
This commit is contained in:
parent
ec20d69feb
commit
22caf14866
@ -574,7 +574,7 @@ public class FishingManager extends SkillManager {
|
|||||||
if (diceRoll <= dropRate) {
|
if (diceRoll <= dropRate) {
|
||||||
// Make sure enchanted books always get some kind of enchantment. --hoorigan
|
// Make sure enchanted books always get some kind of enchantment. --hoorigan
|
||||||
if (treasureDrop.getType() == Material.ENCHANTED_BOOK) {
|
if (treasureDrop.getType() == Material.ENCHANTED_BOOK) {
|
||||||
diceRoll = dropRate;
|
diceRoll = dropRate + 1;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
fishingEnchantments = TreasureConfig.getInstance().fishingEnchantments.get(rarity);
|
fishingEnchantments = TreasureConfig.getInstance().fishingEnchantments.get(rarity);
|
||||||
|
Loading…
Reference in New Issue
Block a user