13
0
geforkt von Mirrors/Paper

SPIGOT-7019: Add yaw in World#getSpawnLocation

By: Doc <nachito94@msn.com>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2022-05-13 11:24:17 +10:00
Ursprung 27ea8b4a25
Commit ee1a8e3018

Datei anzeigen

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