Skip to content

Commit ad20ec9

Browse files
committed
Fix spawn location inconsistency
CraftWorld.setSpawnLocation(Location) requires the world in location. https://github.com/PaperMC/Paper/blob/e8c6ba5068287049c890688534963041208c4213/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java#L338 See #3321
1 parent 8e878b1 commit ad20ec9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/mvplugins/multiverse/core/world/WorldConfigNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ public Object serialize(Material object, Class<Material> type) {
241241
if (!(world instanceof LoadedMultiverseWorld loadedWorld)) return;
242242
if (newValue == null || newValue instanceof NullSpawnLocation) return;
243243
loadedWorld.getBukkitWorld().peek(bukkitWorld -> {
244-
bukkitWorld.setSpawnLocation(newValue);
245244
newValue.setWorld(bukkitWorld);
245+
bukkitWorld.setSpawnLocation(newValue);
246246
});
247247
}));
248248

0 commit comments

Comments
 (0)