diff --git a/osu.Game/Screens/Play/Player.cs b/osu.Game/Screens/Play/Player.cs index cdce89e595..2d6e400595 100644 --- a/osu.Game/Screens/Play/Player.cs +++ b/osu.Game/Screens/Play/Player.cs @@ -244,6 +244,7 @@ namespace osu.Game.Screens.Play HealthProcessor = gameplayMods.OfType().FirstOrDefault()?.CreateHealthProcessor(playableBeatmap.HitObjects[0].StartTime); HealthProcessor ??= ruleset.CreateHealthProcessor(playableBeatmap.HitObjects[0].StartTime); + HealthProcessor.Mods.Value = gameplayMods; HealthProcessor.ApplyBeatmap(playableBeatmap); dependencies.CacheAs(HealthProcessor); @@ -955,7 +956,7 @@ namespace osu.Game.Screens.Play ScoreProcessor.FailScore(Score.ScoreInfo); OnFail(); - if (HealthProcessor.FailTriggers.OfType().Any(m => m.RestartOnFail)) + if (HealthProcessor.TriggeringMod is IApplicableFailOverride mod && mod.RestartOnFail) Restart(true); }); }