mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Make BeatmapStore's BeatmapDatabase private
This commit is contained in:
@ -76,13 +76,9 @@ namespace osu.Game.Screens.Menu
|
||||
|
||||
if (!menuMusic)
|
||||
{
|
||||
var query = beatmaps.Database.Query<BeatmapSetInfo>(b => !b.DeletePending);
|
||||
int count = query.Count();
|
||||
if (count > 0)
|
||||
{
|
||||
setInfo = query.ElementAt(RNG.Next(0, count - 1));
|
||||
beatmaps.Database.Populate(setInfo);
|
||||
}
|
||||
var sets = beatmaps.GetAllUsableBeatmapSets(false);
|
||||
if (sets.Count > 0)
|
||||
setInfo = beatmaps.QueryBeatmapSet(s => s.ID == sets[RNG.Next(0, sets.Count - 1)].ID);
|
||||
}
|
||||
|
||||
if (setInfo == null)
|
||||
|
Reference in New Issue
Block a user