mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
fix: ensure mask is initialised upon visiting a point in BreadthFirstSearch (#2314)
fix: ensure mask is initialised upon visiting a point in BreadFirstSearch
This commit is contained in:
parent
d961aa91bc
commit
9f0a0dbd35
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user