1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 04:02:59 +08:00

Fix protected beatmap sets getting deleted

This commit is contained in:
Dean Herbert 2022-01-12 01:18:11 +09:00
parent 0aff1c232b
commit 157dfdaa82

View File

@ -239,7 +239,7 @@ namespace osu.Game.Beatmaps
{
using (var context = contextFactory.CreateContext())
{
var items = context.All<BeatmapSetInfo>().Where(s => !s.DeletePending);
var items = context.All<BeatmapSetInfo>().Where(s => !s.DeletePending && !s.Protected);
if (filter != null)
items = items.Where(filter);