Some bugfixes to the new ability tool tracking

This commit is contained in:
nossr50
2020-08-18 19:47:15 -07:00
parent a7ded7e982
commit 557cfe3944
7 changed files with 44 additions and 26 deletions

View File

@ -24,13 +24,10 @@ import org.bukkit.Material;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.entity.Player;
import org.bukkit.inventory.*;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class SkillUtils {
@ -210,7 +207,7 @@ public class SkillUtils {
//1.14+ will have persistent metadata for this itemStack
AbstractPersistentDataLayer compatLayer = mcMMO.getCompatibilityManager().getPersistentDataLayer();
if(compatLayer.isSuperAbilityBoosted(itemStack.getItemMeta()))
if(compatLayer.isSuperAbilityBoosted(itemStack))
compatLayer.removeBonusDigSpeedOnSuperAbilityTool(itemStack);
}