mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-15 03:14:56 -05:00
commit
3326329f37
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ class Decompressor extends Transform {
|
|||
this.push(chunk.slice(size))
|
||||
return cb()
|
||||
} 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 (!this.hideErrors) {
|
||||
console.error('problem inflating chunk')
|
||||
|
|
Loading…
Reference in a new issue