1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-07-06 07:34:43 +02:00

Fixed repair enchant downgrade

This commit is contained in:
bm01
2012-07-01 00:04:53 +02:00
parent c88ada489a
commit c45beec59d
2 changed files with 2 additions and 1 deletions
Changelog.txt
src/main/java/com/gmail/nossr50/skills/repair

@ -109,7 +109,7 @@ public class Repair {
if (configInstance.getArcaneForgingDowngradeEnabled() && enchantLevel > 1) {
if (random.nextInt(100) <= getDowngradeChance(rank)) {
is.addEnchantment(enchantment, enchantLevel--);
is.addEnchantment(enchantment, --enchantLevel);
downgraded = true;
}
}