summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-09-25 01:05:55 +0100
committerDinnerbone <dinnerbone@dinnerbone.com>2011-09-25 01:05:55 +0100
commitfad2656c6397fc49f63d482b681355f18429fc0d (patch)
tree088699582155736b199440eea3680cbe47d88214 /src/main/java/org/bukkit
parent1fbd439dc535436765459a885772880af6b50864 (diff)
downloadcraftbukkit-fad2656c6397fc49f63d482b681355f18429fc0d.tar
craftbukkit-fad2656c6397fc49f63d482b681355f18429fc0d.tar.gz
craftbukkit-fad2656c6397fc49f63d482b681355f18429fc0d.tar.lz
craftbukkit-fad2656c6397fc49f63d482b681355f18429fc0d.tar.xz
craftbukkit-fad2656c6397fc49f63d482b681355f18429fc0d.zip
Implemented world.getSeaLevel, made getHeight load from world instead of hardcoded
Diffstat (limited to 'src/main/java/org/bukkit')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftWorld.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
index fc88acb6..f7ec1994 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
@@ -796,7 +796,11 @@ public class CraftWorld implements World {
}
public int getMaxHeight() {
- return 128;
+ return world.height;
+ }
+
+ public int getSeaLevel() {
+ return world.seaLevel;
}
public boolean getKeepSpawnInMemory() {