geforkt von Mirrors/Paper
SPIGOT-7019: Add yaw in World#getSpawnLocation
By: Doc <nachito94@msn.com>
Dieser Commit ist enthalten in:
Ursprung
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
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren