This commit is contained in:
Jesse Boyd 2016-10-21 23:19:49 +11:00
parent f2204fd188
commit 85133067dd
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -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