fix it for deflate as well oops

This commit is contained in:
Holly Stubbs 2023-04-12 23:38:27 +01:00
parent f8a52dfc98
commit dd257acfe2
Signed by: tgpholly
GPG key ID: B8583C4B7D18119E

View file

@ -170,7 +170,7 @@ export class WorldSaveManager {
} }
const chunkData = new Reader(data); const chunkData = new Reader(data);
const chunk = new Chunk(world, x, z, chunkData.readBuffer(totalByteSize).buffer, chunkData.readBuffer(totalByteSize / 2).buffer); const chunk = new Chunk(world, x, z, chunkData.readUint8Array(totalByteSize), chunkData.readUint8Array(totalByteSize / 2));
resolve(chunk); resolve(chunk);
}); });
} }