From fad2656c6397fc49f63d482b681355f18429fc0d Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Sun, 25 Sep 2011 01:05:55 +0100 Subject: [PATCH] Implemented world.getSeaLevel, made getHeight load from world instead of hardcoded --- src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index fc88acb665..f7ec199474 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() {