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 24c76e1c9..9bfd67aa9 100644 --- a/src/main/java/world/bentobox/bentobox/api/panels/PanelItem.java +++ b/src/main/java/world/bentobox/bentobox/api/panels/PanelItem.java @@ -132,7 +132,19 @@ public void setGlow(boolean glow) { return; } if (meta != null) { - meta.setEnchantmentGlintOverride(glow); + try { + meta.setEnchantmentGlintOverride(glow); + } catch (NoSuchMethodError e) { + // Try the old way + if (meta != null) { + if (glow) { + meta.addEnchant(Enchantment.LURE, 0, glow); + } else { + meta.removeEnchant(Enchantment.LURE); + } + icon.setItemMeta(meta); + } + } icon.setItemMeta(meta); }