Fixed bug with Repair not decreasing enchanting levels properly.

Fixes #817
This commit is contained in:
GJ 2013-03-10 15:48:16 -04:00
parent c0b4a33346
commit d78a1efbf6
2 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@ Version 1.4.03-dev
+ Added option to advanced.yml to determine the # of enchant levels used when buffing Super Breaker & Giga Drill Breaker
+ Improved stats display for child skills
+ Added cooldown between using Chimaera Wings
= Fixed bug with Repair not decreasing enchanting levels properly
= Fixed bug with Smelting not properly tracking furnaces
= Fixed bug with Blast Mining not dropping blocks correctly
= Fixed bug with custom blocks not working

View File

@ -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;
}
}