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;
/**
* 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()
)
);
}
}