Skip to content

Commit

Permalink
fixes to correct global map pool rating type
Browse files Browse the repository at this point in the history
  • Loading branch information
Axle1975 committed Sep 12, 2023
1 parent 29a5d07 commit 01d4a0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -528,10 +528,11 @@ protected void setAvailableMapPools(String modTechnical) {
queues.stream().filter(q -> !q.getLeaderboard().getLeaderboardHidden()),
Stream.of(MatchmakingQueue.makePsuedoQueue(
ALL_MAPS_PSUEDO_QUEUE_NAME_KEY,
featuredModListView.getSelectionModel().getSelectedItem())
featuredModListView.getSelectionModel().getSelectedItem(),
queues.isEmpty() ? DEFAULT_RATING_TYPE : queues.get(0).getLeaderboard().getTechnicalName())
)).toList();
mapPoolListView.getItems().setAll(availableQueues);
if (mapPoolListView.getItems().size() > 0) {
if (mapPoolListView.getItems().size() > 1) {
mapPoolListView.getSelectionModel().select(0);
rankedMapPoolsAvailableProperty.set(true);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,13 @@ public MatchmakingQueue() {
this.featuredMod = new SimpleObjectProperty<>(null);
}

public static MatchmakingQueue makePsuedoQueue(String name, FeaturedMod mod) {
public static MatchmakingQueue makePsuedoQueue(String name, FeaturedMod mod, String ratingType) {
MatchmakingQueue queue = new MatchmakingQueue();
queue.setQueueName(name);
queue.setFeaturedMod(mod);
Leaderboard leaderboard = new Leaderboard();
leaderboard.setNameKey(name);
leaderboard.setTechnicalName(ratingType);
queue.setLeaderboard(leaderboard);
return queue;
}
Expand Down

0 comments on commit 01d4a0c

Please sign in to comment.