From 35aa372d8e596ef89738535b2555dc96e3ee7e2f Mon Sep 17 00:00:00 2001 From: Holly Stubbs Date: Thu, 13 Apr 2023 10:46:09 +0100 Subject: [PATCH] Force write chunks to disk on initial generation --- server/World.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/World.ts b/server/World.ts index c4318e1..67e8e47 100644 --- a/server/World.ts +++ b/server/World.ts @@ -75,7 +75,9 @@ export class World { resolve(this.chunks.set(coordPair, chunk)); }); } 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; } }