mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Fixed "lucky" perk making downgrades from repair more likely.
This commit is contained in:
parent
92ae92c116
commit
c3d7a4e3de
@ -114,7 +114,7 @@ public class Repair {
|
||||
int enchantLevel = enchant.getValue();
|
||||
|
||||
if (configInstance.getArcaneForgingDowngradeEnabled() && enchantLevel > 1) {
|
||||
if (random.nextInt(randomChance) <= getDowngradeChance(rank)) {
|
||||
if (random.nextInt(100) <= getDowngradeChance(rank)) {
|
||||
is.addEnchantment(enchantment, --enchantLevel);
|
||||
downgraded = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user