mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 02:42:54 +08:00
Prevent editor from crashing for rulesets with no compose screen implementation
This commit is contained in:
parent
7f3c8ad744
commit
6356b2dde9
@ -32,7 +32,8 @@ namespace osu.Game.Screens.Edit.Compose
|
||||
composer = ruleset?.CreateHitObjectComposer();
|
||||
|
||||
// make the composer available to the timeline and other components in this screen.
|
||||
dependencies.CacheAs(composer);
|
||||
if (composer != null)
|
||||
dependencies.CacheAs(composer);
|
||||
|
||||
return dependencies;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user