From 6fc4d9dcfe7a1eeeefd219aeee4a07f964b391d7 Mon Sep 17 00:00:00 2001 From: sk89q Date: Fri, 25 Mar 2011 00:52:50 -0700 Subject: [PATCH] Fixed CraftWorld.getSpawnLocation() not return the exact spawn location. --- src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index 2fab5cdca2..78331aac1c 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -67,7 +67,7 @@ public class CraftWorld implements World { public Location getSpawnLocation() { ChunkCoordinates spawn = world.l(); - return new Location(this, spawn.a, world.e(spawn.a, spawn.c), spawn.c); + return new Location(this, spawn.a, spawn.b, spawn.c); } public boolean setSpawnLocation(int x, int y, int z) {