mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-18 14:50:56 +00:00
PatternLocator binarycolumn
This commit is contained in:
+2
-2
@@ -20,10 +20,10 @@ public class PatternLocator implements Locator {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BinaryColumn getSuitableCoordinates(Column column) {
|
public BinaryColumn getSuitableCoordinates(Column column) {
|
||||||
List<Integer> locations = new ArrayList<>();
|
BinaryColumn locations = new BinaryColumn(column.getMinY(), column.getMaxY());
|
||||||
|
|
||||||
for(int y : search) {
|
for(int y : search) {
|
||||||
if(pattern.matches(y, column)) locations.add(y);
|
if(pattern.matches(y, column)) locations.set(y);
|
||||||
}
|
}
|
||||||
|
|
||||||
return locations;
|
return locations;
|
||||||
|
|||||||
Reference in New Issue
Block a user