mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 11:03:43 +01:00 
			
		
		
		
	THis wasn't removing when it should have.
This commit is contained in:
		@@ -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);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user