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) {