Skip to content

Commit bf08701

Browse files
committed
Fixed ItemBuilder.glowEffect
1 parent 0f48f8b commit bf08701

File tree

1 file changed

+2
-1
lines changed
  • MiniGamesBox Classic/src/main/java/plugily/projects/minigamesbox/classic/utils/helper

1 file changed

+2
-1
lines changed

MiniGamesBox Classic/src/main/java/plugily/projects/minigamesbox/classic/utils/helper/ItemBuilder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

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

21+
import com.cryptomorin.xseries.XEnchantment;
2122
import org.bukkit.ChatColor;
2223
import org.bukkit.Material;
2324
import org.bukkit.enchantments.Enchantment;
@@ -93,7 +94,7 @@ public ItemBuilder glowEffect() {
9394
if (ServerVersion.Version.isCurrentEqualOrHigher(ServerVersion.Version.v1_21)) {
9495
itemMeta.setEnchantmentGlintOverride(true);
9596
} else {
96-
this.itemMeta.addEnchant(Enchantment.UNBREAKING, 1, true);
97+
this.itemMeta.addEnchant(XEnchantment.UNBREAKING.get(), 1, true);
9798
this.itemMeta.addItemFlags(ItemFlag.HIDE_ENCHANTS);
9899
}
99100
return this;

0 commit comments

Comments
 (0)