SPIGOT-7019: Add yaw in World#getSpawnLocation
This commit is contained in:
parent
2ac7fa7af6
commit
f3c7a6ac7a
@ -172,7 +172,8 @@ public class CraftWorld extends CraftRegionAccessor implements World {
|
|||||||
@Override
|
@Override
|
||||||
public Location getSpawnLocation() {
|
public Location getSpawnLocation() {
|
||||||
BlockPosition spawn = world.getSharedSpawnPos();
|
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
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user