1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-06-22 00:41:25 +02:00

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
src/main/java/com/gmail/nossr50
listeners
skills/utilities

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

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