mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 02:35:49 +01:00
#890: Include yaw in player's spawn location
By: Phoenix616 <max@themoep.de>
This commit is contained in:
parent
96eed49699
commit
c1484dc4b1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue