mirror of
https://github.com/Minestom/Minestom.git
synced 2024-09-29 23:17:59 +02:00
Fixed BinaryWriter#writeNBT
This commit is contained in:
parent
571bb7a866
commit
c85e866e3c
@ -244,7 +244,7 @@ public class BinaryWriter extends OutputStream {
|
|||||||
|
|
||||||
public void writeNBT(String name, NBT tag) {
|
public void writeNBT(String name, NBT tag) {
|
||||||
try {
|
try {
|
||||||
nbtWriter.writeNamed("", tag);
|
nbtWriter.writeNamed(name, tag);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
// should not throw, as nbtWriter points to this PacketWriter
|
// should not throw, as nbtWriter points to this PacketWriter
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
Loading…
Reference in New Issue
Block a user