Skip to content

Commit

Permalink
serialize lore and category name properly
Browse files Browse the repository at this point in the history
  • Loading branch information
WildBamaBoy committed Oct 9, 2024
1 parent 8f7e9e6 commit 9e09a52
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ public ItemStack buildItemStack() {

NbtList loreList = new NbtList();
lore.forEach(loreEntry -> {
loreList.add(NbtString.of(loreEntry));
loreList.add(NbtString.of(Text.Serializer.toJson(Text.of(loreEntry))));
});
displayTag.put(ItemStack.LORE_KEY, loreList);
displayTag.putString("Name", this.displayName);
displayTag.putString("Name", Text.Serializer.toJson(Text.of(this.displayName)));
for (ItemStack.TooltipSection tooltipSection : hideFlags) {
stack.addHideFlag(tooltipSection);
}
Expand Down

0 comments on commit 9e09a52

Please sign in to comment.