mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-12-02 19:22:08 +00:00
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:
1 parent
0f2272299e
commit
b0f535832e
1 file changed
+2
@@ -313,6 +313,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