add a couple more changes++

Fixes #508
This commit is contained in:
dordsor21 2020-07-03 13:18:09 +01:00
parent f1d4104480
commit fae528ab64
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B
2 changed files with 4 additions and 1 deletions

View File

@ -157,7 +157,9 @@ public class ParallelQueueExtent extends PassthroughExtent implements IQueueWrap
}
// TODO optimize parallel
for (BlockVector3 blockVector3 : vset) {
pattern.apply(this, blockVector3, blockVector3);
if (pattern.apply(this, blockVector3, blockVector3)) {
this.changes++;
}
}
return this.changes;
}

View File

@ -2756,6 +2756,7 @@ public class EditSession extends PassthroughExtent implements AutoCloseable {
BlockVector3 tipv = interpol.getPosition(loop).toBlockPoint();
if (radius == 0) {
pattern.apply(this, tipv, tipv);
changes++;
} else {
vset.add(tipv);
}