Save a newly created world before spawn preparation

A crash before the first autosave otherwise loses the world's seed.

Upstream: 9339c0869
This commit is contained in:
piexel committed 2026-11-10 01:02:17 +01:00
1 parent 0f2272299e
commit b0f535832e
1 file changed
+2
@@ -313,6 +313,8 @@ public class IrisCreator {
.thenCompose(Function.identity())
.get(WORLD_CREATE_TIMEOUT_SECONDS, TimeUnit.SECONDS);
if (!studio && !benchmark) {
World createdWorld = world;
J.sfut(() -> createdWorld.save()).get(WORLD_CREATE_TIMEOUT_SECONDS, TimeUnit.SECONDS);
awaitInitialSpawnPreparation(access, name);
}
} catch (Throwable e) {