From 0bd73ea2ec50d14e9367c984123fd9c791774c60 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Fri, 17 Sep 2021 20:03:36 +0100 Subject: [PATCH] Fixed eco 6.8.0 changes --- .../com/willfp/ecoenchants/display/EnchantDisplay.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/EnchantDisplay.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/EnchantDisplay.java index 32c26043..aeaa7ef8 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/EnchantDisplay.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/EnchantDisplay.java @@ -12,7 +12,6 @@ import com.willfp.ecoenchants.enchantments.EcoEnchant; import com.willfp.ecoenchants.enchantments.meta.EnchantmentTarget; import com.willfp.ecoenchants.enchantments.util.ItemConversionOptions; import lombok.Getter; -import org.bukkit.Bukkit; import org.bukkit.NamespacedKey; import org.bukkit.enchantments.Enchantment; import org.bukkit.entity.Player; @@ -79,7 +78,7 @@ public class EnchantDisplay extends DisplayModule { } @Override - protected void display(@NotNull final ItemStack itemStack, + public void display(@NotNull final ItemStack itemStack, @Nullable final Player player, @NotNull final Object... args) { if (options.isRequireTarget()) { @@ -184,7 +183,7 @@ public class EnchantDisplay extends DisplayModule { } @Override - protected void revert(@NotNull final ItemStack itemStack) { + public void revert(@NotNull final ItemStack itemStack) { if (!EnchantmentTarget.ALL.getMaterials().contains(itemStack.getType())) { return; } @@ -211,7 +210,7 @@ public class EnchantDisplay extends DisplayModule { } @Override - protected Object[] generateVarArgs(@NotNull final ItemStack itemStack) { + public Object[] generateVarArgs(@NotNull final ItemStack itemStack) { ItemMeta meta = itemStack.getItemMeta(); if (meta == null) { return new Object[]{false};