mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 09:03:50 +09:00
Change migration to trigger reprocessing on every local beatmap
Was originally relying on the fact that this would be triggered due to a null `LastOnlineUpdate`, but wouldn't cover the case of beatmaps with no `OnlineID`.
This commit is contained in:
@ -785,11 +785,10 @@ namespace osu.Game.Database
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 20:
|
case 20:
|
||||||
|
// As we now have versioned difficulty calculations, let's reset
|
||||||
|
// all star ratings and have `BackgroundBeatmapProcessor` recalculate them.
|
||||||
foreach (var beatmap in migration.NewRealm.All<BeatmapInfo>())
|
foreach (var beatmap in migration.NewRealm.All<BeatmapInfo>())
|
||||||
{
|
|
||||||
if (beatmap.StarRating == 0)
|
|
||||||
beatmap.StarRating = -1;
|
beatmap.StarRating = -1;
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user