Fix cuboid iteration

This commit is contained in:
Jesse Boyd 2017-02-16 02:21:58 +11:00
parent 1cd090ce01
commit 79f7a95fc6
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -445,7 +445,7 @@ public class CuboidRegion extends AbstractRegion implements FlatRegion {
y = by;
if (x > tx) {
x = bx;
if (z > tz) {
if (z >= tz) {
if (!hasNext) {
throw new NoSuchElementException("End of iterator") {
@Override
@ -455,6 +455,8 @@ public class CuboidRegion extends AbstractRegion implements FlatRegion {
};
}
hasNext = false;
--x;
--y;
return mutable;
}
} else {