mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-28 21:52:17 -04:00
fix an error in writeCompressedNbt
This commit is contained in:
parent
a698749387
commit
dc0159e5e3
@ -73,7 +73,7 @@ function writeCompressedNbt(value, buffer, offset) {
|
|||||||
buffer.writeInt16BE(-1,offset);
|
buffer.writeInt16BE(-1,offset);
|
||||||
return offset+2;
|
return offset+2;
|
||||||
}
|
}
|
||||||
buffer.writeInt16(sizeOfNbt(value),offset);
|
buffer.writeInt16BE(sizeOfNbt(value),offset);
|
||||||
return nbt.proto.write(value,buffer,offset+2,"nbt");
|
return nbt.proto.write(value,buffer,offset+2,"nbt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user