Skip to content

Commit ef9934f

Browse files
authored
Merge pull request #3373 from riku6460/fix-set-spawn
Fix spawn location inconsistency
2 parents 691bcd0 + ad20ec9 commit ef9934f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)