summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorFeepingCreature <default_357-line@yahoo.de>2011-01-16 07:00:01 +0800
committerDinner Bone <dinnerbone@dinnerbone.com>2011-01-20 08:58:08 +0800
commit0e821e60c9412e5d0d84f8d32de46e7a3de6c837 (patch)
tree204281aa01dffdf13f70db41a9304ce71e56a349 /src/main
parentbded4fb316868e674f66c35b66e66b19c6dd0e90 (diff)
downloadcraftbukkit-0e821e60c9412e5d0d84f8d32de46e7a3de6c837.tar
craftbukkit-0e821e60c9412e5d0d84f8d32de46e7a3de6c837.tar.gz
craftbukkit-0e821e60c9412e5d0d84f8d32de46e7a3de6c837.tar.lz
craftbukkit-0e821e60c9412e5d0d84f8d32de46e7a3de6c837.tar.xz
craftbukkit-0e821e60c9412e5d0d84f8d32de46e7a3de6c837.zip
Implement getSpawnLocation().
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftWorld.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
index d3aebcce..ea89b7b1 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
+++ b/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);