From f0aef9887078ada7895a73e89206543d177e53cf Mon Sep 17 00:00:00 2001 From: Jordan Date: Sun, 18 Jun 2023 18:08:31 +0200 Subject: [PATCH] fix: don't "double-up" a setblocks if a region is being set (#2299) - Fixes #2294 --- .../core/queue/implementation/ParallelQueueExtent.java | 1 + 1 file changed, 1 insertion(+) diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/queue/implementation/ParallelQueueExtent.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/queue/implementation/ParallelQueueExtent.java index 0d7436ca5..2d2b45aae 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/queue/implementation/ParallelQueueExtent.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/queue/implementation/ParallelQueueExtent.java @@ -193,6 +193,7 @@ public class ParallelQueueExtent extends PassthroughExtent { public int setBlocks(Set vset, Pattern pattern) { if (vset instanceof Region) { this.changes = setBlocks((Region) vset, pattern); + return this.changes; } // TODO optimize parallel for (BlockVector3 blockVector3 : vset) {