Fixing tournament report throwing out random replay IDs instead of, y'know, the correct ones.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user