Skip to content

Commit

Permalink
Fixed ItemBuilder.glowEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigerpanzer02 committed Feb 18, 2025
1 parent 0f48f8b commit bf08701
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

package plugily.projects.minigamesbox.classic.utils.helper;

import com.cryptomorin.xseries.XEnchantment;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.enchantments.Enchantment;
Expand Down Expand Up @@ -93,7 +94,7 @@ public ItemBuilder glowEffect() {
if (ServerVersion.Version.isCurrentEqualOrHigher(ServerVersion.Version.v1_21)) {
itemMeta.setEnchantmentGlintOverride(true);
} else {
this.itemMeta.addEnchant(Enchantment.UNBREAKING, 1, true);
this.itemMeta.addEnchant(XEnchantment.UNBREAKING.get(), 1, true);
this.itemMeta.addItemFlags(ItemFlag.HIDE_ENCHANTS);
}
return this;
Expand Down

0 comments on commit bf08701

Please sign in to comment.