From dd257acfe2458f5957488a081564551fef4b0b8a Mon Sep 17 00:00:00 2001 From: Holly Date: Wed, 12 Apr 2023 23:38:27 +0100 Subject: [PATCH] fix it for deflate as well oops --- server/WorldSaveManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/WorldSaveManager.ts b/server/WorldSaveManager.ts index 2911e0b..f898019 100644 --- a/server/WorldSaveManager.ts +++ b/server/WorldSaveManager.ts @@ -170,7 +170,7 @@ export class WorldSaveManager { } 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); }); }