diff options
author | Thinkofdeath <thinkofdeath@spigotmc.org> | 2014-12-02 23:54:38 +0000 |
---|---|---|
committer | Thinkofdeath <thinkofdeath@spigotmc.org> | 2014-12-02 23:54:38 +0000 |
commit | 1613d09138a8a18635920ccff5ccade6130daf76 (patch) | |
tree | 7b55038ba58ea00c172952be7b3036e3489419be /src/main | |
parent | 37102a0c167c4e1115d5e124840bbbd2cbfe9ec1 (diff) | |
download | craftbukkit-1613d09138a8a18635920ccff5ccade6130daf76.tar craftbukkit-1613d09138a8a18635920ccff5ccade6130daf76.tar.gz craftbukkit-1613d09138a8a18635920ccff5ccade6130daf76.tar.lz craftbukkit-1613d09138a8a18635920ccff5ccade6130daf76.tar.xz craftbukkit-1613d09138a8a18635920ccff5ccade6130daf76.zip |
Don't wrap the y coordinate in World.getBlockAt
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index f20a0406..83efd6ae 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -82,7 +82,7 @@ public class CraftWorld implements World { } public Block getBlockAt(int x, int y, int z) { - return getChunkAt(x >> 4, z >> 4).getBlock(x & 0xF, y & 0xFF, z & 0xF); + return getChunkAt(x >> 4, z >> 4).getBlock(x & 0xF, y, z & 0xF); } public int getBlockTypeIdAt(int x, int y, int z) { |