File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
MiniGamesBox Classic/src/main/java/plugily/projects/minigamesbox/classic/utils/helper Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1818
1919package plugily .projects .minigamesbox .classic .utils .helper ;
2020
21+ import com .cryptomorin .xseries .XEnchantment ;
2122import org .bukkit .ChatColor ;
2223import org .bukkit .Material ;
2324import 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 ;
You can’t perform that action at this time.
0 commit comments