#890: Include yaw in player's spawn location

By: Phoenix616 <max@themoep.de>
This commit is contained in:
CraftBukkit/Spigot 2021-07-15 20:29:38 +10:00
parent 96eed49699
commit c1484dc4b1

View file

@ -775,7 +775,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
Optional<Vec3D> 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;