Fix MDFC NPE (#6121)

Co-authored-by: TRT <>
This commit is contained in:
tool4ever
2024-09-11 09:11:42 +02:00
committed by GitHub
parent 138c866b12
commit bd1f48d530

View File

@@ -395,7 +395,7 @@ public class ComputerUtilCard {
if (Iterables.size(list) == 1) { if (Iterables.size(list) == 1) {
return Iterables.get(list, 0); return Iterables.get(list, 0);
} }
return Aggregates.itemWithMax(Iterables.filter(list, CardPredicates.Presets.LANDS), ComputerUtilCard.landEvaluator); return Aggregates.itemWithMax(Iterables.filter(list, Card::hasPlayableLandFace), ComputerUtilCard.landEvaluator);
} }
/** /**