Fix fuzzy region

This commit is contained in:
dordsor21
2021-09-21 14:31:03 +01:00
parent 69ae4a7121
commit d0056870be
4 changed files with 20 additions and 16 deletions

View File

@ -717,8 +717,7 @@ public class SelectionCommands {
case FUZZY:
case MAGIC:
Mask maskOpt = new IdMask(world);
//TODO Make FuzzyRegionSelector accept actors
newSelector = new FuzzyRegionSelector((Player) actor, world, maskOpt);
newSelector = new FuzzyRegionSelector(actor, world, maskOpt);
actor.print(Caption.of("fawe.selection.sel.fuzzy"));
actor.print(Caption.of("fawe.selection.sel.list"));
break;

View File

@ -210,7 +210,9 @@ public abstract class BreadthFirstSearch implements Operation {
* Add the given location to the list of locations to visit, provided
* that it has not been visited. The position passed to this method
* will still be visited even if it fails
* {@link #isVisitable(BlockVector3, BlockVector3)}.
* {@link #isVisitable(BlockVector3, BlockVector3)} as
* {@link #isVisitable(BlockVector3, BlockVector3)} is never actually
* called.
*
* <p>This method should be used before the search begins, because if
* the position <em>does</em> fail the test, and the search has already