Skip to content

Commit e43a359

Browse files
committed
Reuse PerformanceAttributes
1 parent c1b22d6 commit e43a359

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • bathbot/src/active/impls/relax

bathbot/src/active/impls/relax/top.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ impl RelaxTopPagination {
122122

123123
let mods = &score.mods;
124124
let mut pp_manager = Context::pp(map).mods(mods.clone());
125-
let stars = pp_manager.difficulty().await.stars();
126125
let max_attrs = pp_manager.performance().await;
127126

128127
// NOTE: Make generic versions of formatting functions later on
@@ -143,7 +142,7 @@ impl RelaxTopPagination {
143142
map_id = score.beatmap_id,
144143
mods = ModsFormatter::new(mods),
145144
pp = PpFormatter::new(score_pp, Some(max_pp)),
146-
stars = stars,
145+
stars = max_attrs.stars(),
147146
acc = round(score.accuracy),
148147
score = WithComma::new(score.total_score),
149148
combo = ComboFormatter::new(score.combo, Some(max_combo)),

0 commit comments

Comments
 (0)