From 68581f9ef543286eff9a98f6bd6a4dfb432c5595 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Tue, 2 Dec 2014 23:54:38 +0000 Subject: [PATCH] Don't wrap the y coordinate in World.getBlockAt By: Thinkofdeath --- .../src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 2 +- 1 file changed, 1 insertion(+), 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 f20a040636..83efd6ae15 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/paper-server/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) {