Force write chunks to disk on initial generation

This commit is contained in:
Holly Stubbs 2023-04-13 10:46:09 +01:00
parent e252fe255c
commit 35aa372d8e

View file

@ -75,7 +75,9 @@ export class World {
resolve(this.chunks.set(coordPair, chunk)); resolve(this.chunks.set(coordPair, chunk));
}); });
} else { } else {
return resolve(this.chunks.set(coordPair, new Chunk(this, x, z, true))); resolve(this.chunks.set(coordPair, new Chunk(this, x, z, true)));
this.saveManager.writeChunkToDisk(this.getChunk(x, z));
return;
} }
} }