mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-27 13:14:41 -04:00
fix readCompressedNbt, fix #359
This commit is contained in:
parent
9f8e87e9e3
commit
94db80c676
@ -74,7 +74,11 @@ function readCompressedNbt(buffer, offset) {
|
||||
|
||||
const nbtBuffer = zlib.gunzipSync(compressedNbt); // TODO: async
|
||||
|
||||
return nbt.proto.read(nbtBuffer,0,"nbt");
|
||||
const results=nbt.proto.read(nbtBuffer,0,"nbt");
|
||||
return {
|
||||
size:length+2,
|
||||
value:results.value
|
||||
}
|
||||
}
|
||||
|
||||
function writeCompressedNbt(value, buffer, offset) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user