From fa61eef933738a1c4afb2d0554498669b25044fe Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 16 Jan 2011 07:00:01 +0800 Subject: [PATCH] Implement getSpawnLocation(). By: FeepingCreature --- .../src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index d3aebcceb8..ea89b7b1b2 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -50,6 +50,10 @@ public class CraftWorld implements World { public int getHighestBlockYAt(int x, int z) { return world.d(x, z); } + + public Location getSpawnLocation() { + return new Location(this, world.m, world.e(world.m, world.o), world.o); + } public Chunk getChunkAt(int x, int z) { ChunkCoordinate loc = new ChunkCoordinate(x, z);