From c45beec59d8560419facb64e162209de6fe82494 Mon Sep 17 00:00:00 2001 From: bm01 Date: Sun, 1 Jul 2012 00:04:53 +0200 Subject: [PATCH] Fixed repair enchant downgrade --- Changelog.txt | 1 + src/main/java/com/gmail/nossr50/skills/repair/Repair.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog.txt b/Changelog.txt index bf0f9f6d3..4d8d3b3f0 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -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) diff --git a/src/main/java/com/gmail/nossr50/skills/repair/Repair.java b/src/main/java/com/gmail/nossr50/skills/repair/Repair.java index e93190861..fcde5aa6e 100644 --- a/src/main/java/com/gmail/nossr50/skills/repair/Repair.java +++ b/src/main/java/com/gmail/nossr50/skills/repair/Repair.java @@ -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; } }