From b474d357751b644a0ffc68692d29532ac9dd2ac6 Mon Sep 17 00:00:00 2001 From: Holly Date: Wed, 12 Apr 2023 23:01:23 +0100 Subject: [PATCH] f --- server/WorldSaveManager.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/WorldSaveManager.ts b/server/WorldSaveManager.ts index d6c4d98..44ae6e3 100644 --- a/server/WorldSaveManager.ts +++ b/server/WorldSaveManager.ts @@ -103,6 +103,11 @@ export class WorldSaveManager { chunkFileWriter.writeBuffer(chunkData); // Chunk data writeFile(`${this.worldChunksFolderPath}/${chunk.x},${chunk.z}.hwc`, chunkFileWriter.toBuffer(), () => { + const cPair = Chunk.CreateCoordPair(chunk.x, chunk.z); + if (!this.chunksOnDisk.includes(cPair)) { + this.chunksOnDisk.push(cPair); + } + resolve(true); }); } else if (saveType === SaveCompressionType.DEFLATE) {