mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 02:35:49 +01:00
SPIGOT-7019: Add yaw in World#getSpawnLocation
By: Doc <nachito94@msn.com>
This commit is contained in:
parent
27ea8b4a25
commit
ee1a8e3018
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue