mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-25 01:58:28 +01:00
THis wasn't removing when it should have.
This commit is contained in:
parent
615288e635
commit
6cc2497182
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user