Fix older Java

This commit is contained in:
tool4EvEr
2023-01-16 19:49:30 +01:00
parent 813d16814b
commit d636668e16

View File

@@ -25,6 +25,7 @@ import java.util.Map;
import org.apache.commons.lang3.tuple.Pair; import org.apache.commons.lang3.tuple.Pair;
import com.google.common.base.Predicate; import com.google.common.base.Predicate;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Iterables; import com.google.common.collect.Iterables;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
@@ -310,7 +311,7 @@ public class CombatUtil {
} }
public static Cost getAttackCost(final Game game, final Card attacker, final GameEntity defender) { public static Cost getAttackCost(final Game game, final Card attacker, final GameEntity defender) {
return getAttackCost(game, attacker, defender, List.of()); return getAttackCost(game, attacker, defender, ImmutableList.of());
} }
/** /**
* Get the cost that has to be paid for a creature to attack a certain * Get the cost that has to be paid for a creature to attack a certain