mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 01:01:58 +01:00
SPIGOT-7019: Add yaw in World#getSpawnLocation
By: Doc <nachito94@msn.com>
This commit is contained in:
parent
27ea8b4a25
commit
ee1a8e3018
@ -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 New Issue
Block a user