From 39fa07e572dd62c8245ebaabbb8bc0d974d58191 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Sun, 26 May 2024 17:43:56 +0100 Subject: [PATCH] set SETUP to true on setup --- .../core/extent/processor/PlacementStateProcessor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/processor/PlacementStateProcessor.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/processor/PlacementStateProcessor.java index f4e1fc360..aa857c65e 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/processor/PlacementStateProcessor.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/processor/PlacementStateProcessor.java @@ -35,7 +35,7 @@ import java.util.stream.Collectors; public abstract class PlacementStateProcessor extends AbstractDelegateExtent implements IBatchProcessor, Filter, Pattern { private static final Direction[] NESW = new Direction[]{Direction.NORTH, Direction.EAST, Direction.SOUTH, Direction.WEST}; - private static final boolean SETUP = false; + private static volatile boolean SETUP = false; private static BlockTypeMask DEFAULT_MASK = null; protected final Extent extent; @@ -106,6 +106,7 @@ public abstract class PlacementStateProcessor extends AbstractDelegateExtent imp DEFAULT_MASK.add(category.getAll()); } } + SETUP = true; } @Override