1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 07:22:54 +08:00

Fix starting game with non-default ruleset failing

This commit is contained in:
Dean Herbert 2022-01-18 16:11:03 +09:00
parent 8978b88f69
commit 8b8940439e

View File

@ -451,13 +451,13 @@ namespace osu.Game
private void onBeatmapChanged(ValueChangedEvent<WorkingBeatmap> valueChangedEvent)
{
if (!ThreadSafety.IsUpdateThread)
if (IsLoaded && !ThreadSafety.IsUpdateThread)
throw new InvalidOperationException("Global beatmap bindable must be changed from update thread.");
}
private void onRulesetChanged(ValueChangedEvent<RulesetInfo> r)
{
if (!ThreadSafety.IsUpdateThread)
if (IsLoaded && !ThreadSafety.IsUpdateThread)
throw new InvalidOperationException("Global ruleset bindable must be changed from update thread.");
if (r.NewValue?.Available != true)