f
This commit is contained in:
parent
860c8f4866
commit
b474d35775
1 changed files with 5 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue