From d704aa9c679da125da70f3ffb99ea8b38cc2e7fc Mon Sep 17 00:00:00 2001 From: tastybento Date: Sun, 28 Jul 2024 15:43:04 -0700 Subject: [PATCH] Use dedicated glint API instead of enchantments --- .../java/world/bentobox/bentobox/api/panels/PanelItem.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/world/bentobox/bentobox/api/panels/PanelItem.java b/src/main/java/world/bentobox/bentobox/api/panels/PanelItem.java index 589e936d2..24c76e1c9 100644 --- a/src/main/java/world/bentobox/bentobox/api/panels/PanelItem.java +++ b/src/main/java/world/bentobox/bentobox/api/panels/PanelItem.java @@ -132,11 +132,7 @@ public class PanelItem { return; } if (meta != null) { - if (glow) { - meta.addEnchant(Enchantment.LURE, 0, glow); - } else { - meta.removeEnchant(Enchantment.LURE); - } + meta.setEnchantmentGlintOverride(glow); icon.setItemMeta(meta); }