THis wasn't removing when it should have.

This commit is contained in:
GJ 2013-02-14 16:29:49 -05:00
parent 615288e635
commit 6cc2497182
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ public class PlayerListener implements Listener {
if (itemLore.remove("mcMMO Ability Tool")) {
if (efficiencyLevel <= 5) {
item.removeEnchantment(Enchantment.DIG_SPEED);
itemMeta.removeEnchant(Enchantment.DIG_SPEED);
}
else {
itemMeta.addEnchant(Enchantment.DIG_SPEED, efficiencyLevel - 5, true);

View File

@ -559,7 +559,7 @@ public class SkillTools {
if (itemLore.remove("mcMMO Ability Tool")) {
if (efficiencyLevel <= 5) {
item.removeEnchantment(Enchantment.DIG_SPEED);
itemMeta.removeEnchant(Enchantment.DIG_SPEED);
}
else {
itemMeta.addEnchant(Enchantment.DIG_SPEED, efficiencyLevel - 5, true);