Преглед изворни кода

Fixed bug with Repair not decreasing enchanting levels properly.

Fixes #817
GJ пре 12 година
родитељ
комит
d78a1efbf6
2 измењених фајлова са 2 додато и 1 уклоњено
  1. 1 0
      Changelog.txt
  2. 1 1
      src/main/java/com/gmail/nossr50/skills/repair/RepairManager.java

+ 1 - 0
Changelog.txt

@@ -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
  + 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
  + Improved stats display for child skills
  + Added cooldown between using Chimaera Wings
  + 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 Smelting not properly tracking furnaces
  = Fixed bug with Blast Mining not dropping blocks correctly
  = Fixed bug with Blast Mining not dropping blocks correctly
  = Fixed bug with custom blocks not working
  = Fixed bug with custom blocks not working

+ 1 - 1
src/main/java/com/gmail/nossr50/skills/repair/RepairManager.java

@@ -326,7 +326,7 @@ public class RepairManager extends SkillManager {
                 int enchantLevel = enchant.getValue();
                 int enchantLevel = enchant.getValue();
 
 
                 if (Repair.arcaneForgingDowngrades && enchantLevel > 1 && getDowngradeEnchantChance() > Misc.getRandom().nextInt(activationChance)) {
                 if (Repair.arcaneForgingDowngrades && enchantLevel > 1 && getDowngradeEnchantChance() > Misc.getRandom().nextInt(activationChance)) {
-                    item.addEnchantment(enchantment, enchantLevel--);
+                    item.addEnchantment(enchantment, enchantLevel - 1);
                     downgraded = true;
                     downgraded = true;
                 }
                 }
             }
             }