From 43db386fe4d9ed51d5e64f55285367c721e4b239 Mon Sep 17 00:00:00 2001 From: FrozenCow Date: Tue, 4 Jan 2011 05:56:09 +0800 Subject: [PATCH] Added getHighestBlockYAt --- src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index 5cd587b200..31b9d0f0e3 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -42,6 +42,10 @@ public class CraftWorld implements World { return block; } + + public int getHighestBlockYAt(int x, int z) { + return world.d(x, z); + } public Chunk getChunkAt(int x, int z) { ChunkCoordinate loc = new ChunkCoordinate(x, z);