Skip to content

Commit fbcb684

Browse files
committed
Fix thing
1 parent 1e8177f commit fbcb684

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

osu.Game/Database/RealmAccess.cs

+16-12
Original file line numberDiff line numberDiff line change
@@ -945,22 +945,26 @@ void convertOnlineIDs<T>() where T : RealmObject
945945

946946
foreach (var score in scores)
947947
{
948-
// Recalculate the old-style standardised score to see if this was an old lazer score.
949-
bool oldScoreMatchesExpectations = StandardisedScoreMigrationTools.GetOldStandardised(score) == score.TotalScore;
950-
// Some older scores don't have correct statistics populated, so let's give them benefit of doubt.
951-
bool scoreIsVeryOld = score.Date < new DateTime(2023, 1, 1, 0, 0, 0);
952-
953-
if (oldScoreMatchesExpectations || scoreIsVeryOld)
948+
try
954949
{
955-
try
956-
{
957-
long calculatedNew = StandardisedScoreMigrationTools.GetNewStandardised(score);
958-
score.TotalScore = calculatedNew;
959-
}
960-
catch
950+
// Recalculate the old-style standardised score to see if this was an old lazer score.
951+
bool oldScoreMatchesExpectations = StandardisedScoreMigrationTools.GetOldStandardised(score) == score.TotalScore;
952+
// Some older scores don't have correct statistics populated, so let's give them benefit of doubt.
953+
bool scoreIsVeryOld = score.Date < new DateTime(2023, 1, 1, 0, 0, 0);
954+
955+
if (oldScoreMatchesExpectations || scoreIsVeryOld)
961956
{
957+
try
958+
{
959+
long calculatedNew = StandardisedScoreMigrationTools.GetNewStandardised(score);
960+
score.TotalScore = calculatedNew;
961+
}
962+
catch
963+
{
964+
}
962965
}
963966
}
967+
catch { }
964968
}
965969

966970
break;

0 commit comments

Comments
 (0)