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