mirror of
https://github.com/ppy/osu
synced 2024-12-14 02:46:27 +00:00
Delegate IsPlayable
to the obsoleted UserPlayable
by default
Handles consumers who still haven't updated to use `IsPlayable` yet.
This commit is contained in:
parent
add9f3ec91
commit
5f878ed82b
@ -91,7 +91,9 @@ namespace osu.Game.Rulesets.Mods
|
||||
[JsonIgnore]
|
||||
public virtual bool HasImplementation => this is IApplicableMod;
|
||||
|
||||
public virtual bool IsPlayable(ModUsage usage) => true;
|
||||
#pragma warning disable 618
|
||||
public virtual bool IsPlayable(ModUsage usage) => UserPlayable;
|
||||
#pragma warning restore 618
|
||||
|
||||
[JsonIgnore]
|
||||
[Obsolete("Override IsPlayable instead.")] // Can be removed 20220918
|
||||
|
Loading…
Reference in New Issue
Block a user