mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 10:14:43 +02:00
Fixed bug with Repair not decreasing enchanting levels properly.
Fixes #817
This commit is contained in:
@ -326,7 +326,7 @@ public class RepairManager extends SkillManager {
|
||||
int enchantLevel = enchant.getValue();
|
||||
|
||||
if (Repair.arcaneForgingDowngrades && enchantLevel > 1 && getDowngradeEnchantChance() > Misc.getRandom().nextInt(activationChance)) {
|
||||
item.addEnchantment(enchantment, enchantLevel--);
|
||||
item.addEnchantment(enchantment, enchantLevel - 1);
|
||||
downgraded = true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user