Force write chunks to disk on initial generation
This commit is contained in:
parent
e252fe255c
commit
35aa372d8e
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue