You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix zlib crashes on Node 24: use sync zlib to catch all errors
- Use deflateSync/unzipSync in compression.js (async versions can
throw uncaught from Node 24's internal Zlib C++ binding)
- Wrap gunzipSync in minecraft.js NBT parsing
- Suppress compressor/decompressor errors during client shutdown
- Use prismarine-nbt fix branch for gunzipSync
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@@ -52,23 +54,23 @@ class Decompressor extends Transform {
52
54
this.push(chunk.slice(size))
53
55
returncb()
54
56
}else{
55
-
zlib.unzip(chunk.slice(size),{finishFlush: 2/* Z_SYNC_FLUSH = 2, but when using Browserify/Webpack it doesn't exist */},(err,newBuf)=>{/** Fix by lefela4. */
0 commit comments