13
0
geforkt von Mirrors/Paper

#890: Include yaw in player's spawn location

By: Phoenix616 <max@themoep.de>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2021-07-15 20:29:38 +10:00
Ursprung 96eed49699
Commit c1484dc4b1

Datei anzeigen

@ -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;