epic super
This commit is contained in:
parent
aa3833915b
commit
cef88cde20
@ -49,7 +49,7 @@ public class MapArtSchematic extends Schematic {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static <T> OptionalInt lastIndexMatching(T[] arr, Predicate<T> predicate) {
|
private static <T> OptionalInt lastIndexMatching(T[] arr, Predicate<? super T> predicate) {
|
||||||
for (int y = arr.length - 1; y >= 0; y--) {
|
for (int y = arr.length - 1; y >= 0; y--) {
|
||||||
if (predicate.test(arr[y])) {
|
if (predicate.test(arr[y])) {
|
||||||
return OptionalInt.of(y);
|
return OptionalInt.of(y);
|
||||||
|
Loading…
Reference in New Issue
Block a user