From 355b0fa3144915016411b3b26b931e5734d45da9 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Mon, 21 Mar 2022 13:49:55 +0900 Subject: [PATCH] Fix loading player via skin editor still allowing changing current audio track `PlayerLoader` is required in the sequence to get the game into the correct state for gameplay right now. Applying ths simplest fix here. Closes https://github.com/ppy/osu/issues/17351. --- osu.Game/Skinning/Editor/SkinEditorSceneLibrary.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game/Skinning/Editor/SkinEditorSceneLibrary.cs b/osu.Game/Skinning/Editor/SkinEditorSceneLibrary.cs index 5da6147e4c..eac13922d7 100644 --- a/osu.Game/Skinning/Editor/SkinEditorSceneLibrary.cs +++ b/osu.Game/Skinning/Editor/SkinEditorSceneLibrary.cs @@ -94,7 +94,7 @@ namespace osu.Game.Skinning.Editor var replayGeneratingMod = ruleset.Value.CreateInstance().GetAutoplayMod(); if (replayGeneratingMod != null) - screen.Push(new ReplayPlayer((beatmap, mods) => replayGeneratingMod.CreateReplayScore(beatmap, mods))); + screen.Push(new PlayerLoader(() => new ReplayPlayer((beatmap, mods) => replayGeneratingMod.CreateReplayScore(beatmap, mods)))); }, new[] { typeof(Player), typeof(SongSelect) }) }, }