1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 17:52:56 +08:00

Use more correct mod check to encompass more than just autoplay

This commit is contained in:
Dean Herbert 2022-03-02 14:42:08 +09:00
parent e184b26cdd
commit 763f881d4a

View File

@ -15,13 +15,12 @@ using osu.Game.Database;
using osu.Game.Graphics;
using osu.Game.Graphics.Containers;
using osu.Game.Graphics.Sprites;
using osu.Game.Localisation;
using osu.Game.Overlays.Settings;
using osu.Game.Rulesets.Scoring;
using osu.Game.Scoring;
using osu.Game.Screens.Ranking.Statistics;
using osuTK;
using osu.Game.Localisation;
using osu.Game.Rulesets.Mods;
#nullable enable
@ -155,7 +154,7 @@ namespace osu.Game.Screens.Play.PlayerSettings
if (score.NewValue == null)
return;
if (score.NewValue.Mods.Any(m => m is ModAutoplay))
if (score.NewValue.Mods.Any(m => !m.UserPlayable))
return;
var hitEvents = score.NewValue.HitEvents;