dont use range iterator in MatchPattern

This commit is contained in:
dfsek 2022-06-14 22:42:10 -07:00
parent e5fa4fd1f1
commit 7d92d273cf

View File

@ -25,7 +25,7 @@ public class MatchPattern implements Pattern {
@Override
public boolean matches(int y, Column<?> column) {
for(int i : range) {
for(int i = range.getMin(); i < range.getMax(); i++) {
if(!matches.test(column.getBlock(y + i))) return false;
}
return true;