From 871ae76a23381bd5d11c91cb58e23f3e12ac2161 Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 1 Aug 2024 16:26:57 +0100 Subject: [PATCH] fix leaderboard object order --- .../model/leaderboard/Leaderboard.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/API/src/main/java/cc/fascinated/model/leaderboard/Leaderboard.java b/API/src/main/java/cc/fascinated/model/leaderboard/Leaderboard.java index 505ed26..47c6a65 100644 --- a/API/src/main/java/cc/fascinated/model/leaderboard/Leaderboard.java +++ b/API/src/main/java/cc/fascinated/model/leaderboard/Leaderboard.java @@ -41,11 +41,6 @@ public class Leaderboard { */ private String levelAuthorName; - /** - * The difficulty of the song. - */ - private Difficulty difficulty; - /** * The star rating for this leaderboard. */ @@ -55,6 +50,11 @@ public class Leaderboard { */ private String coverImage; + /** + * The difficulty of the song. + */ + private Difficulty difficulty; + /** * Constructs a new {@link Leaderboard} object * from a {@link ScoreSaberLeaderboardToken} object. @@ -70,12 +70,12 @@ public class Leaderboard { token.getSongSubName(), token.getSongAuthorName(), token.getLevelAuthorName(), + token.getStars(), + token.getCoverImage(), new Difficulty( ScoreSaberUtils.parseDifficulty(token.getDifficulty().getDifficulty()), token.getDifficulty().getDifficultyRaw() - ), - token.getStars(), - token.getCoverImage() + ) ); } }