Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-20 21:40:06 +01:00
Don't wrap the y coordinate in World.getBlockAt
Dieser Commit ist enthalten in:
Ursprung
37102a0c16
Commit
1613d09138
@ -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) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren