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;
}
if (meta != null) {
if (glow) {
meta.addEnchant(Enchantment.LURE, 0, glow);
} else {
meta.removeEnchant(Enchantment.LURE);
}
meta.setEnchantmentGlintOverride(glow);
icon.setItemMeta(meta);
}