From fad2656c6397fc49f63d482b681355f18429fc0d Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Sun, 25 Sep 2011 01:05:55 +0100 Subject: 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(-) (limited to 'src/main/java/org/bukkit') 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() { -- cgit v1.2.3