From dad991e7aa6494c8427bba9a4c8d784fe3c87b01 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Tue, 14 Sep 2021 14:32:42 +0100 Subject: [PATCH] synchronise filterBlocks - we shouldn't be able to execute the call method whilst a filter is ongoing and vice versa --- .../core/queue/implementation/chunk/ChunkHolder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/queue/implementation/chunk/ChunkHolder.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/queue/implementation/chunk/ChunkHolder.java index 4496a9aa0..7a7706f87 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/queue/implementation/chunk/ChunkHolder.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/queue/implementation/chunk/ChunkHolder.java @@ -886,7 +886,7 @@ public class ChunkHolder> implements IQueueChunk { } @Override - public void filterBlocks(Filter filter, ChunkFilterBlock block, @Nullable Region region, boolean full) { + public synchronized void filterBlocks(Filter filter, ChunkFilterBlock block, @Nullable Region region, boolean full) { final IChunkGet get = getOrCreateGet(); final IChunkSet set = getOrCreateSet(); set.setFastMode(fastmode);