Put world into worldlist before initing the world

Some parts of legacy conversion will need the overworld
to get the legacy structure data storage
This commit is contained in:
Spottedleaf
2022-02-22 14:21:35 -08:00
parent b854576e5d
commit 299d7beee0
2 changed files with 52 additions and 48 deletions

View File

@ -1336,10 +1336,11 @@ public final class CraftServer implements Server {
return null;
}
this.console.addLevel(internal); // Paper - Put world into worldlist before initing the world; move up
this.console.initWorld(internal, worlddata, worlddata, worlddata.worldGenOptions());
internal.setSpawnSettings(true);
this.console.addLevel(internal);
// Paper - Put world into worldlist before initing the world; move up
this.getServer().prepareLevels(internal.getChunkSource().chunkMap.progressListener, internal);
internal.entityManager.tick(); // SPIGOT-6526: Load pending entities so they are available to the API