mirror of
https://github.com/ppy/osu.git
synced 2025-01-27 00:23:01 +08:00
Fix starting game with non-default ruleset failing
This commit is contained in:
parent
8978b88f69
commit
8b8940439e
@ -451,13 +451,13 @@ namespace osu.Game
|
|||||||
|
|
||||||
private void onBeatmapChanged(ValueChangedEvent<WorkingBeatmap> valueChangedEvent)
|
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.");
|
throw new InvalidOperationException("Global beatmap bindable must be changed from update thread.");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onRulesetChanged(ValueChangedEvent<RulesetInfo> r)
|
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.");
|
throw new InvalidOperationException("Global ruleset bindable must be changed from update thread.");
|
||||||
|
|
||||||
if (r.NewValue?.Available != true)
|
if (r.NewValue?.Available != true)
|
||||||
|
Loading…
Reference in New Issue
Block a user