Skip to content

Commit

Permalink
Fixed incorrect pako compression function
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasDower committed Nov 4, 2023
1 parent a1d0fa1 commit ac1505f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/src/util/nbt_util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import pako from 'pako';

export function saveNBT(nbt: NBT) {
const uncompressedBuffer = writeUncompressed(nbt, 'big');
return pako.deflate(uncompressedBuffer);
}
return pako.gzip(uncompressedBuffer);
}

0 comments on commit ac1505f

Please sign in to comment.