Fixed BinaryWriter#writeNBT

This commit is contained in:
themode 2020-08-19 20:35:22 +02:00
parent 571bb7a866
commit c85e866e3c

View File

@ -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();