diff --git a/server/src/main/java/cn/nukkit/level/Level.java b/server/src/main/java/cn/nukkit/level/Level.java index dad731833..938f5880b 100644 --- a/server/src/main/java/cn/nukkit/level/Level.java +++ b/server/src/main/java/cn/nukkit/level/Level.java @@ -1382,8 +1382,8 @@ public Block getBlock(Vector3 pos, boolean cached) { if (cached && (block = this.blockCache.get(index)) != null) { return block; - } else if (pos.y >= 0 && pos.y < 128 && (chunk = this.chunks.get(chunkIndex)) != null) { - fullState = chunk.getFullBlock((int) pos.x & 0x0f, (int) pos.y & 0x7f, + } else if (pos.y >= 0 && pos.y < 256 && (chunk = this.chunks.get(chunkIndex)) != null) { + fullState = chunk.getFullBlock((int) pos.x & 0x0f, (int) pos.y & 0xff, (int) pos.z & 0x0f); } else { fullState = 0;