mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-24 17:11:58 +01:00
Fix ItemStack display name serialization
This commit is contained in:
parent
c3adf3ff67
commit
cd06fbdfaa
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user