mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-29 14:13:45 -04:00
commit
3326329f37
@ -52,7 +52,7 @@ class Decompressor extends Transform {
|
|||||||
this.push(chunk.slice(size))
|
this.push(chunk.slice(size))
|
||||||
return cb()
|
return cb()
|
||||||
} else {
|
} else {
|
||||||
zlib.inflate(chunk.slice(size), (err, newBuf) => {
|
zlib.unzip(chunk.slice(size), { finishFlush: zlib.constants.Z_SYNC_FLUSH }, (err, newBuf) => { /** Fix by lefela4. */
|
||||||
if (err) {
|
if (err) {
|
||||||
if (!this.hideErrors) {
|
if (!this.hideErrors) {
|
||||||
console.error('problem inflating chunk')
|
console.error('problem inflating chunk')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user