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

View File

@ -12,6 +12,7 @@ Version 1.3.10-dev
+ Added ability for custom blocks to drop a range of items.
+ Added Ability API functions
+ Added 50% & 150% XP boost perks
= Fixed Repair enchant downgrade not working
= Fixed NPE caused by Spout players after a /reload
= Fixed ConcurrentModificationException on world unload
= Fixed players never being removed from memory (memory leak)

View File

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