Skip to content

Commit

Permalink
fix: Fixed ItemBuilder.shiny on modern versions (Fixed #171)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeGodSRC committed Nov 21, 2024
1 parent 143f1bb commit 94cbdb0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public ItemBuilderImpl skull(Player owner) {
@Override
public ItemBuilderImpl shiny() {
return this.editMeta(meta -> {
meta.addEnchant(Enchantment.UNBREAKING, 1, false);
this.enchantment(XEnchantment.UNBREAKING, 1);
meta.addItemFlags(ItemFlag.HIDE_ENCHANTS);
});
}
Expand Down

0 comments on commit 94cbdb0

Please sign in to comment.