mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-02 07:55:28 +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
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user