mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-04 00:45:57 +00:00
dont use range iterator in MatchPattern
This commit is contained in:
parent
e5fa4fd1f1
commit
7d92d273cf
@ -25,7 +25,7 @@ public class MatchPattern implements Pattern {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean matches(int y, Column<?> column) {
|
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;
|
if(!matches.test(column.getBlock(y + i))) return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user