Skip to content

Commit

Permalink
3.12.2
Browse files Browse the repository at this point in the history
  • Loading branch information
syd711 committed Jan 13, 2025
1 parent 1e6b0fc commit 09d1583
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ public boolean contains(Score newScore) {
}

public void mergeExternalScores(List<Score> externalScores) {
this.scores.addAll(externalScores);
for (Score externalScore : externalScores) {
if (!contains(externalScore)) {
this.scores.add(externalScore);
}
}
Collections.sort(scores, (o1, o2) -> (int) (o2.getNumericScore() - o1.getNumericScore()));
for (int i = 1; i <= scores.size(); i++) {
Score score = scores.get(i - 1);
Expand Down

0 comments on commit 09d1583

Please sign in to comment.