Fix cuboid iteration
This commit is contained in:
parent
1cd090ce01
commit
79f7a95fc6
@ -445,7 +445,7 @@ public class CuboidRegion extends AbstractRegion implements FlatRegion {
|
|||||||
y = by;
|
y = by;
|
||||||
if (x > tx) {
|
if (x > tx) {
|
||||||
x = bx;
|
x = bx;
|
||||||
if (z > tz) {
|
if (z >= tz) {
|
||||||
if (!hasNext) {
|
if (!hasNext) {
|
||||||
throw new NoSuchElementException("End of iterator") {
|
throw new NoSuchElementException("End of iterator") {
|
||||||
@Override
|
@Override
|
||||||
@ -455,6 +455,8 @@ public class CuboidRegion extends AbstractRegion implements FlatRegion {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
hasNext = false;
|
hasNext = false;
|
||||||
|
--x;
|
||||||
|
--y;
|
||||||
return mutable;
|
return mutable;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user