We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f7e9e6 commit 9e09a52Copy full SHA for 9e09a52
fabric-1.20.1/src/main/java/io/tebex/plugin/gui/TebexItemBuilder.java
@@ -39,10 +39,10 @@ public ItemStack buildItemStack() {
39
40
NbtList loreList = new NbtList();
41
lore.forEach(loreEntry -> {
42
- loreList.add(NbtString.of(loreEntry));
+ loreList.add(NbtString.of(Text.Serializer.toJson(Text.of(loreEntry))));
43
});
44
displayTag.put(ItemStack.LORE_KEY, loreList);
45
- displayTag.putString("Name", this.displayName);
+ displayTag.putString("Name", Text.Serializer.toJson(Text.of(this.displayName)));
46
for (ItemStack.TooltipSection tooltipSection : hideFlags) {
47
stack.addHideFlag(tooltipSection);
48
}
0 commit comments