Skip to content

Commit

Permalink
chore: fix missing region in readyPlayers
Browse files Browse the repository at this point in the history
  • Loading branch information
yHSJ committed Dec 10, 2024
1 parent 833eeef commit 7e18c5e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/src/main/java/fi/sundae/bot/tournament/Matchmaker.java
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@ public HashMap<Region, List<String>> getUsernames() {
userNamesInRegions.put(region, usernames);
region = regions.nextElement();
}
List<String> usernames =
REGISTERED_USERS.get(region).stream()
.map(User::getName)
.collect(Collectors.toCollection(ArrayList::new));
userNamesInRegions.put(region, usernames);

return userNamesInRegions;
}
Expand Down

0 comments on commit 7e18c5e

Please sign in to comment.