From ee1a8e3018af4132a844a4d65de197f108b57084 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Fri, 13 May 2022 11:24:17 +1000 Subject: [PATCH] SPIGOT-7019: Add yaw in World#getSpawnLocation By: Doc --- .../src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index f81c1f6376..5983286a83 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -172,7 +172,8 @@ public class CraftWorld extends CraftRegionAccessor implements World { @Override public Location getSpawnLocation() { BlockPosition spawn = world.getSharedSpawnPos(); - return new Location(this, spawn.getX(), spawn.getY(), spawn.getZ()); + float yaw = world.getSharedSpawnAngle(); + return new Location(this, spawn.getX(), spawn.getY(), spawn.getZ(), yaw, 0); } @Override