mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 12:02:36 +01:00
Don't wrap the y coordinate in World.getBlockAt
By: Thinkofdeath <thinkofdeath@spigotmc.org>
This commit is contained in:
parent
e5627edb48
commit
68581f9ef5
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ public class CraftWorld implements World {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Block getBlockAt(int x, int y, int z) {
|
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) {
|
public int getBlockTypeIdAt(int x, int y, int z) {
|
||||||
|
|
Loading…
Reference in a new issue