Use dedicated glint API instead of enchantments

This commit is contained in:
tastybento 2024-07-28 15:43:04 -07:00
parent 1155ffd08e
commit d704aa9c67

View File

@ -132,11 +132,7 @@ public class PanelItem {
return; return;
} }
if (meta != null) { if (meta != null) {
if (glow) { meta.setEnchantmentGlintOverride(glow);
meta.addEnchant(Enchantment.LURE, 0, glow);
} else {
meta.removeEnchant(Enchantment.LURE);
}
icon.setItemMeta(meta); icon.setItemMeta(meta);
} }