From 9f0a0dbd355bf5497744bfcf023f69c0c224cba7 Mon Sep 17 00:00:00 2001 From: Jordan Date: Thu, 22 Jun 2023 20:32:54 +0100 Subject: [PATCH] fix: ensure mask is initialised upon visiting a point in BreadthFirstSearch (#2314) fix: ensure mask is initialised upon visiting a point in BreadFirstSearch --- .../com/sk89q/worldedit/function/visitor/BreadthFirstSearch.java | 1 + 1 file changed, 1 insertion(+) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/function/visitor/BreadthFirstSearch.java b/worldedit-core/src/main/java/com/sk89q/worldedit/function/visitor/BreadthFirstSearch.java index c1b36ef6b..7f3e5da63 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/function/visitor/BreadthFirstSearch.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/function/visitor/BreadthFirstSearch.java @@ -229,6 +229,7 @@ public abstract class BreadthFirstSearch implements Operation { */ public void visit(BlockVector3 position) { if (!visited.contains(position)) { + isVisitable(position, position); // Ignore this, just to initialize mask on this point queue.add(position); visited.add(position); }