mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 14:02:55 +08:00
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.
This commit is contained in:
parent
6fbeea78dd
commit
355b0fa314
@ -94,7 +94,7 @@ namespace osu.Game.Skinning.Editor
|
|||||||
|
|
||||||
var replayGeneratingMod = ruleset.Value.CreateInstance().GetAutoplayMod();
|
var replayGeneratingMod = ruleset.Value.CreateInstance().GetAutoplayMod();
|
||||||
if (replayGeneratingMod != null)
|
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) })
|
}, new[] { typeof(Player), typeof(SongSelect) })
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user