3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-27 03:12:37 +01:00

Changed BreadthFirstSearch.getDirections() to return a Collection.

Dieser Commit ist enthalten in:
sk89q 2014-03-30 14:43:47 -07:00
Ursprung 41c4033fbb
Commit 6864a0fadf
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -70,7 +70,7 @@ public abstract class BreadthFirstSearch implements Operation {
* *
* @return the list of directions * @return the list of directions
*/ */
protected List<Vector> getDirections() { protected Collection<Vector> getDirections() {
return directions; return directions;
} }

Datei anzeigen

@ -23,7 +23,7 @@ import com.sk89q.worldedit.Vector;
import com.sk89q.worldedit.function.RegionFunction; import com.sk89q.worldedit.function.RegionFunction;
import com.sk89q.worldedit.function.mask.Mask; import com.sk89q.worldedit.function.mask.Mask;
import java.util.List; import java.util.Collection;
import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.base.Preconditions.checkNotNull;
@ -51,7 +51,7 @@ public class DownwardVisitor extends RecursiveVisitor {
this.baseY = baseY; this.baseY = baseY;
List<Vector> directions = getDirections(); Collection<Vector> directions = getDirections();
directions.clear(); directions.clear();
directions.add(new Vector(1, 0, 0)); directions.add(new Vector(1, 0, 0));
directions.add(new Vector(-1, 0, 0)); directions.add(new Vector(-1, 0, 0));