This commit is contained in:
Holly Stubbs 2023-04-12 23:01:23 +01:00
parent 860c8f4866
commit b474d35775
Signed by: tgpholly
GPG key ID: B8583C4B7D18119E

View file

@ -103,6 +103,11 @@ export class WorldSaveManager {
chunkFileWriter.writeBuffer(chunkData); // Chunk data chunkFileWriter.writeBuffer(chunkData); // Chunk data
writeFile(`${this.worldChunksFolderPath}/${chunk.x},${chunk.z}.hwc`, chunkFileWriter.toBuffer(), () => { 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); resolve(true);
}); });
} else if (saveType === SaveCompressionType.DEFLATE) { } else if (saveType === SaveCompressionType.DEFLATE) {