From cd06fbdfaa733994f34e2f67074a706837598b62 Mon Sep 17 00:00:00 2001 From: Kieran Wallbanks Date: Thu, 25 Mar 2021 13:25:19 +0000 Subject: [PATCH] Fix ItemStack display name serialization --- src/main/java/net/minestom/server/utils/NBTUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minestom/server/utils/NBTUtils.java b/src/main/java/net/minestom/server/utils/NBTUtils.java index 35374fc3f..517f03e59 100644 --- a/src/main/java/net/minestom/server/utils/NBTUtils.java +++ b/src/main/java/net/minestom/server/utils/NBTUtils.java @@ -317,7 +317,7 @@ public final class NBTUtils { if (hasDisplayName || hasLore) { NBTCompound displayNBT = new NBTCompound(); if (hasDisplayName) { - final String name = itemStack.getDisplayName().toString(); + final String name = MinecraftServer.getSerializationManager().serialize(itemStack.getDisplayName()); displayNBT.setString("Name", name); }