From c1484dc4b1060a22a9f415faca2fac78fbc0ae64 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Thu, 15 Jul 2021 20:29:38 +1000 Subject: [PATCH] #890: Include yaw in player's spawn location By: Phoenix616 --- .../main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index 2831c4c73e..15f3caf975 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -775,7 +775,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player { Optional spawnLoc = EntityHuman.getBed(world, bed, getHandle().getSpawnAngle(), getHandle().isSpawnForced(), true); if (spawnLoc.isPresent()) { Vec3D vec = spawnLoc.get(); - return new Location(world.getWorld(), vec.x, vec.y, vec.z); + return new Location(world.getWorld(), vec.x, vec.y, vec.z, getHandle().getSpawnAngle(), 0); } } return null;