mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-03 08:25:31 +00:00
add y to exception message
This commit is contained in:
parent
089710247b
commit
876e4b86ae
@ -53,7 +53,7 @@ public class Column<T extends WritableWorld> {
|
|||||||
|
|
||||||
public BlockState getBlock(int y) {
|
public BlockState getBlock(int y) {
|
||||||
if(y >= max || y < min) {
|
if(y >= max || y < min) {
|
||||||
throw new IllegalArgumentException("Y out of range [" + min + ", " + max + ")");
|
throw new IllegalArgumentException("Y " + y + " out of range [" + min + ", " + max + ")");
|
||||||
}
|
}
|
||||||
return world.getBlockState(x, y, z);
|
return world.getBlockState(x, y, z);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user