mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Use pattern matching wherever possible
This commit is contained in:
@ -16,8 +16,7 @@ namespace osu.Game.Rulesets.Mods
|
||||
|
||||
public override void ApplyToClock(IAdjustableClock clock)
|
||||
{
|
||||
var pitchAdjust = clock as IHasPitchAdjust;
|
||||
if (pitchAdjust != null)
|
||||
if (clock is IHasPitchAdjust pitchAdjust)
|
||||
pitchAdjust.PitchAdjust = 1.5;
|
||||
else
|
||||
base.ApplyToClock(clock);
|
||||
|
Reference in New Issue
Block a user