Fixed bug where repairing an mcMMO ability-buffed item with mcMMO repair

could take the enchant but leave the lore tag
This commit is contained in:
GJ 2013-03-02 19:38:29 -05:00
parent 0d7c402c01
commit cf82ae4c66
2 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,7 @@ Version 1.4.01-dev
= Fixed bug where trying to use /mctop or /xplock with the Smelting child skill caused NPEs
= Fixed bug where /mctop and /mcrank wouldn't show overall power levels for servers using Flatfile
= Fixed bug where Smelting would throw consistent errors due to offline players
= Fixed bug where repairing an mcMMO ability-buffed item with mcMMO repair could take the enchant but leave the lore tag
Version 1.4.00
+ Added new Child Skill - Smelting!

View File

@ -15,6 +15,7 @@ import com.gmail.nossr50.events.skills.repair.McMMOPlayerRepairCheckEvent;
import com.gmail.nossr50.locale.LocaleLoader;
import com.gmail.nossr50.util.Permissions;
import com.gmail.nossr50.util.StringUtils;
import com.gmail.nossr50.util.skills.SkillUtils;
public class SimpleRepairManager implements RepairManager {
private HashMap<Integer, Repairable> repairables;
@ -108,6 +109,9 @@ public class SimpleRepairManager implements RepairManager {
return;
}
// Clear ability buffs before trying to repair.
SkillUtils.removeAbilityBuff(item);
// Lets get down to business,
// To defeat, the huns.
int baseRepairAmount = repairable.getBaseRepairDurability(); // Did they send me daughters?