2022-02-22 23:28:34 +01:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Spottedleaf <Spottedleaf@users.noreply.github.com>
|
|
|
|
Date: Tue, 22 Feb 2022 14:21:35 -0800
|
|
|
|
Subject: [PATCH] Put world into worldlist before initing the world
|
|
|
|
|
|
|
|
Some parts of legacy conversion will need the overworld
|
|
|
|
to get the legacy structure data storage
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
|
2022-07-27 23:32:15 +02:00
|
|
|
index 6c121ba39e7995a786e56f601e72fb8dd6db14d4..f1a41aff0abcc631f07cdc4a23f23d7b85f12814 100644
|
2022-02-22 23:28:34 +01:00
|
|
|
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
|
2022-07-27 23:32:15 +02:00
|
|
|
@@ -601,9 +601,10 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
|
2022-02-22 23:28:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
worlddata.setModdedInfo(this.getServerModName(), this.getModdedStatus().shouldReportAsModified());
|
|
|
|
+ this.levels.put(world.dimension(), world); // Paper - move up
|
|
|
|
this.initWorld(world, worlddata, worldData, worlddata.worldGenSettings());
|
|
|
|
|
|
|
|
- this.levels.put(world.dimension(), world);
|
|
|
|
+ // Paper - move up
|
|
|
|
this.getPlayerList().addWorldborderListener(world);
|
|
|
|
|
|
|
|
if (worlddata.getCustomBossEvents() != null) {
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
2022-07-23 03:56:50 +02:00
|
|
|
index 941e2b22807373f739925b0d9a3eec28300ac7ff..8d1992ba6446c2c5a3b4e2410603d98110207d5f 100644
|
2022-02-22 23:28:34 +01:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
2022-07-04 16:38:06 +02:00
|
|
|
@@ -1239,10 +1239,11 @@ public final class CraftServer implements Server {
|
2022-02-22 23:28:34 +01:00
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ console.levels.put(internal.dimension(), internal); // Paper - move up
|
|
|
|
this.console.initWorld(internal, worlddata, worlddata, worlddata.worldGenSettings());
|
|
|
|
|
|
|
|
internal.setSpawnSettings(true, true);
|
|
|
|
- console.levels.put(internal.dimension(), internal);
|
|
|
|
+ // Paper - 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
|