add check
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 37s
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 37s
This commit is contained in:
parent
09834e9eac
commit
900ccba67e
@ -218,6 +218,13 @@ public class ScoreSaberPlatform extends Platform {
|
|||||||
log.warn("Failed to update leaderboard '{}' for platform '{}'", id, this.getPlatform().getPlatformName());
|
log.warn("Failed to update leaderboard '{}' for platform '{}'", id, this.getPlatform().getPlatformName());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (leaderboard.getStars() == 0) { // Check if the leaderboard is ranked
|
||||||
|
log.warn("Leaderboard '{}' for platform '{}' is not ranked, skipping updating the score pp values",
|
||||||
|
id,
|
||||||
|
this.getPlatform().getPlatformName()
|
||||||
|
);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
List<TrackedScore> toUpdate = scores.stream().filter(score -> {
|
List<TrackedScore> toUpdate = scores.stream().filter(score -> {
|
||||||
if (!score.getLeaderboardId().equals(id)) { // Check if the leaderboard ID matches
|
if (!score.getLeaderboardId().equals(id)) { // Check if the leaderboard ID matches
|
||||||
|
Reference in New Issue
Block a user