Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
bearofbusiness committed Oct 9, 2024
2 parents cdf0cc0 + da1c64a commit 5941e71
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public ItemBuilder(Material material) {
* param name the name of the item
*/
public ItemBuilder withName(String name) {
this.meta.setDisplayName(StringUtil.formatHex(name));
this.meta.setDisplayName(StringUtils.formatHex(name));
return this;
}
/**
Expand All @@ -41,7 +41,7 @@ public ItemBuilder withAmount(int amount) {
*/
public ItemBuilder withLoreLine(String loreLine) {
List<String> lore = this.meta.hasLore() ? this.meta.getLore() : new ArrayList<>();
lore.add(StringUtil.formatHex(loreLine));
lore.add(StringUtils.formatHex(loreLine));
this.meta.setLore(lore);
return this;
}
Expand All @@ -52,7 +52,7 @@ public ItemBuilder withLoreLine(String loreLine) {
public ItemBuilder withLore(String... loreLine) {
List<String> lore = this.meta.hasLore() ? this.meta.getLore() : new ArrayList<>();
for(String line : loreLine) {
lore.add(StringUtil.formatHex(line));
lore.add(StringUtils.formatHex(line));
}

this.meta.setLore(lore);
Expand Down

0 comments on commit 5941e71

Please sign in to comment.