SPIGOT-7019: Add yaw in World#getSpawnLocation

By: Doc <nachito94@msn.com>
This commit is contained in:
CraftBukkit/Spigot 2022-05-13 11:24:17 +10:00
parent 27ea8b4a25
commit ee1a8e3018

View file

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