Skip to content

Commit 9926041

Browse files
authored
Merge pull request #3321 from KioProject123/fix/spawn-location-angle
fix spawn location angle
2 parents 642f3ab + 1c99898 commit 9926041

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());
241+
bukkitWorld.setSpawnLocation(newValue);
242242
newValue.setWorld(bukkitWorld);
243243
});
244244
}));

0 commit comments

Comments
 (0)