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