mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-02 19:06:07 +00:00
Changed BreadthFirstSearch.getDirections() to return a Collection.
This commit is contained in:
parent
41c4033fbb
commit
6864a0fadf
@ -70,7 +70,7 @@ public abstract class BreadthFirstSearch implements Operation {
|
||||
*
|
||||
* @return the list of directions
|
||||
*/
|
||||
protected List<Vector> getDirections() {
|
||||
protected Collection<Vector> getDirections() {
|
||||
return directions;
|
||||
}
|
||||
|
||||
|
@ -23,7 +23,7 @@ import com.sk89q.worldedit.Vector;
|
||||
import com.sk89q.worldedit.function.RegionFunction;
|
||||
import com.sk89q.worldedit.function.mask.Mask;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Collection;
|
||||
|
||||
import static com.google.common.base.Preconditions.checkNotNull;
|
||||
|
||||
@ -51,7 +51,7 @@ public class DownwardVisitor extends RecursiveVisitor {
|
||||
|
||||
this.baseY = baseY;
|
||||
|
||||
List<Vector> directions = getDirections();
|
||||
Collection<Vector> directions = getDirections();
|
||||
directions.clear();
|
||||
directions.add(new Vector(1, 0, 0));
|
||||
directions.add(new Vector(-1, 0, 0));
|
||||
|
Loading…
Reference in New Issue
Block a user