Skip to content

Commit 1c99898

Browse files
committed
fix
1 parent 41e0261 commit 1c99898

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
@@ -238,7 +238,7 @@ public Object serialize(Material object, Class<Material> type) {
238238
if (!(world instanceof LoadedMultiverseWorld loadedWorld)) return;
239239
if (newValue == null || newValue instanceof NullSpawnLocation) return;
240240
loadedWorld.getBukkitWorld().peek(bukkitWorld -> {
241-
bukkitWorld.setSpawnLocation(newValue.getBlockX(), newValue.getBlockY(), newValue.getBlockZ(), newValue.getYaw());
241+
bukkitWorld.setSpawnLocation(newValue);
242242
newValue.setWorld(bukkitWorld);
243243
});
244244
}));

0 commit comments

Comments
 (0)