mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
Refactor: Replace unnecessary Collections.sort with List.sort (#9168)
This commit is contained in:
parent
3f96f243b2
commit
12595ac651
1 changed files with 1 additions and 1 deletions
|
@ -2502,7 +2502,7 @@ public class ComputerPlayer extends PlayerImpl implements Player {
|
|||
protected List<ColoredManaSymbol> chooseDeckColorsIfPossible() {
|
||||
if (pickedCards.size() > 2) {
|
||||
// sort by score and color mana symbol count in descending order
|
||||
Collections.sort(pickedCards, new Comparator<PickedCard>() {
|
||||
pickedCards.sort(new Comparator<PickedCard>() {
|
||||
@Override
|
||||
public int compare(PickedCard o1, PickedCard o2) {
|
||||
if (o1.score.equals(o2.score)) {
|
||||
|
|
Loading…
Reference in a new issue