geforkt von Mirrors/FastAsyncWorldEdit
Changed BreadthFirstSearch.getDirections() to return a Collection.
Dieser Commit ist enthalten in:
Ursprung
41c4033fbb
Commit
6864a0fadf
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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));
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren