From 374e3baf1643f4e5b3709f17f52abf10fbe6403c 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 9e958d801..d49942dbc 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 @@ -34,7 +34,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; @@ -105,6 +105,7 @@ public abstract class PlacementStateProcessor extends AbstractDelegateExtent imp DEFAULT_MASK.add(category.getAll()); } } + SETUP = true; } @Override