mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-01 08:50:06 +00:00
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:
commit
f1c82e8cec
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) {
|
||||||
|
|||||||
Reference in new issue
Block a user