fix: don't "double-up" a setblocks if a region is being set (#2299)

- Fixes #2294
This commit is contained in:
Jordan 2023-06-18 18:08:31 +02:00 committed by GitHub
parent 135c77cfb5
commit f0aef98870
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -193,6 +193,7 @@ public class ParallelQueueExtent extends PassthroughExtent {
public int setBlocks(Set<BlockVector3> vset, Pattern pattern) { public int setBlocks(Set<BlockVector3> vset, Pattern pattern) {
if (vset instanceof Region) { if (vset instanceof Region) {
this.changes = setBlocks((Region) vset, pattern); this.changes = setBlocks((Region) vset, pattern);
return this.changes;
} }
// TODO optimize parallel // TODO optimize parallel
for (BlockVector3 blockVector3 : vset) { for (BlockVector3 blockVector3 : vset) {