From d95db4089ba07a5664435eaaeee24f38d488d70e Mon Sep 17 00:00:00 2001 From: Peter-io <93472377+Peter-io@users.noreply.github.com> Date: Fri, 12 Jul 2024 15:40:29 +0200 Subject: [PATCH] Change condition in Player --- osu.Game/Screens/Play/Player.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }); }