1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-26 20:17:22 +08:00

style(KeyCounterDisplay): remove type check

This commit is contained in:
tsrk 2023-02-17 09:09:56 +00:00
parent d0e8d65766
commit c94e647e21
No known key found for this signature in database
GPG Key ID: EBD46BB3049B56D6

View File

@ -29,15 +29,10 @@ namespace osu.Game.Screens.Play
public override void Add(KeyCounter key)
{
if (!CheckType(key))
throw new ArgumentException($"{key.GetType()} is not a supported {nameof(KeyCounter)}.", nameof(key));
base.Add(key);
key.IsCounting = IsCounting;
}
protected virtual bool CheckType(KeyCounter key) => true;
[BackgroundDependencyLoader]
private void load(OsuConfigManager config)
{