diff --git a/src/main/java/cc/fascinated/platform/impl/ScoreSaberPlatform.java b/src/main/java/cc/fascinated/platform/impl/ScoreSaberPlatform.java index 534c902..6583812 100644 --- a/src/main/java/cc/fascinated/platform/impl/ScoreSaberPlatform.java +++ b/src/main/java/cc/fascinated/platform/impl/ScoreSaberPlatform.java @@ -202,7 +202,14 @@ public class ScoreSaberPlatform extends Platform { continue; } - List toUpdate = scores.stream().filter(score -> score.getLeaderboardId().equals(id)).toList(); + List toUpdate = scores.stream().filter(score -> { + if (!score.getLeaderboardId().equals(id)) { // Check if the leaderboard ID matches + return false; + } + double pp = this.getPp(this.getCurrentCurveVersion(), leaderboard.getStars(), score.getAccuracy()); + return pp != score.getPp(); // Check if the pp has changed + }).toList(); + for (TrackedScore score : toUpdate) { // Update the scores double pp = this.getPp(this.getCurrentCurveVersion(), leaderboard.getStars(), score.getAccuracy()); score.setPp(pp);