Saved world on create

- /iris create saves a new world before spawn preparation
- A crash before the first autosave keeps the world's seed
This commit is contained in:
Brian Neumann-Fopiano committed 2026-10-31 12:39:29 -04:00
1 parent bb32ea9d25
commit 9339c0869e
1 file changed
+2
@@ -333,6 +333,8 @@ public class IrisCreator {
.thenCompose(Function.identity()) .thenCompose(Function.identity())
.get(WORLD_CREATE_TIMEOUT_SECONDS, TimeUnit.SECONDS); .get(WORLD_CREATE_TIMEOUT_SECONDS, TimeUnit.SECONDS);
if (!studio && !benchmark) { if (!studio && !benchmark) {
World createdWorld = world;
J.sfut(() -> createdWorld.save()).get(WORLD_CREATE_TIMEOUT_SECONDS, TimeUnit.SECONDS);
awaitInitialSpawnPreparation(access, name); awaitInitialSpawnPreparation(access, name);
} }
} catch (Throwable e) { } catch (Throwable e) {