fix leaderboard object order
Some checks failed
Deploy API / docker (17, 3.8.5) (push) Failing after 36s

This commit is contained in:
Lee 2024-08-01 16:26:57 +01:00
parent 7aa3de3827
commit 871ae76a23

@ -41,11 +41,6 @@ public class Leaderboard {
*/ */
private String levelAuthorName; private String levelAuthorName;
/**
* The difficulty of the song.
*/
private Difficulty difficulty;
/** /**
* The star rating for this leaderboard. * The star rating for this leaderboard.
*/ */
@ -55,6 +50,11 @@ public class Leaderboard {
*/ */
private String coverImage; private String coverImage;
/**
* The difficulty of the song.
*/
private Difficulty difficulty;
/** /**
* Constructs a new {@link Leaderboard} object * Constructs a new {@link Leaderboard} object
* from a {@link ScoreSaberLeaderboardToken} object. * from a {@link ScoreSaberLeaderboardToken} object.
@ -70,12 +70,12 @@ public class Leaderboard {
token.getSongSubName(), token.getSongSubName(),
token.getSongAuthorName(), token.getSongAuthorName(),
token.getLevelAuthorName(), token.getLevelAuthorName(),
token.getStars(),
token.getCoverImage(),
new Difficulty( new Difficulty(
ScoreSaberUtils.parseDifficulty(token.getDifficulty().getDifficulty()), ScoreSaberUtils.parseDifficulty(token.getDifficulty().getDifficulty()),
token.getDifficulty().getDifficultyRaw() token.getDifficulty().getDifficultyRaw()
), )
token.getStars(),
token.getCoverImage()
); );
} }
} }