Fixing tournament report throwing out random replay IDs instead of, y'know, the correct ones.

This commit is contained in:
Christian 'ketura' McCarty
2024-08-18 22:12:13 -05:00
parent 2155f088c6
commit f84c8eb206

View File

@@ -533,8 +533,9 @@ public class DefaultTournament implements Tournament {
continue;
}
var game = games.stream().filter(x -> x.winner.equals(playerName) || x.loser.equals(playerName))
.findFirst().orElse(null);
var game = games.stream().filter((x) -> x.winner.equals(match.getWinner()) && x.loser.equals(match.getLoser()))
.findFirst()
.orElse(null);
if(game == null)
continue;