From c85e866e3cbaa006cc601acdef6f96a8bb12d588 Mon Sep 17 00:00:00 2001 From: themode Date: Wed, 19 Aug 2020 20:35:22 +0200 Subject: [PATCH] Fixed BinaryWriter#writeNBT --- .../java/net/minestom/server/utils/binary/BinaryWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minestom/server/utils/binary/BinaryWriter.java b/src/main/java/net/minestom/server/utils/binary/BinaryWriter.java index 26581acc7..c1ca6fc72 100644 --- a/src/main/java/net/minestom/server/utils/binary/BinaryWriter.java +++ b/src/main/java/net/minestom/server/utils/binary/BinaryWriter.java @@ -244,7 +244,7 @@ public class BinaryWriter extends OutputStream { public void writeNBT(String name, NBT tag) { try { - nbtWriter.writeNamed("", tag); + nbtWriter.writeNamed(name, tag); } catch (IOException e) { // should not throw, as nbtWriter points to this PacketWriter e.printStackTrace();