mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-25 03:55:35 +01:00
Fixes #338
This commit is contained in:
parent
f2204fd188
commit
85133067dd
@ -786,6 +786,9 @@ public class EditSession extends AbstractWorld implements HasFaweQueue {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BaseBlock getLazyBlock(final Vector position) {
|
public BaseBlock getLazyBlock(final Vector position) {
|
||||||
|
if (position.y > maxY || position.y < 0) {
|
||||||
|
return nullBlock;
|
||||||
|
}
|
||||||
return getLazyBlock((int) position.x, (int) position.y, (int) position.z);
|
return getLazyBlock((int) position.x, (int) position.y, (int) position.z);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -794,7 +797,7 @@ public class EditSession extends AbstractWorld implements HasFaweQueue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public BaseBlock getBlock(int x, int y, int z) {
|
public BaseBlock getBlock(int x, int y, int z) {
|
||||||
return extent.getLazyBlock(x, y, z);
|
return getLazyBlock(x, y, z);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user