mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-25 04:05:36 +01:00
Use dedicated glint API instead of enchantments
This commit is contained in:
parent
1155ffd08e
commit
d704aa9c67
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user