Skip to content

Commit 41e0261

Browse files
committed
fix spawn location angle
1 parent 642f3ab commit 41e0261

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
@@ -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.getBlockX(), newValue.getBlockY(), newValue.getBlockZ(), newValue.getYaw());
242242
newValue.setWorld(bukkitWorld);
243243
});
244244
}));

0 commit comments

Comments
 (0)