mirror of
https://github.com/ppy/osu.git
synced 2025-01-04 21:12:54 +08:00
replace 'as' with direct cast to avoid possible nullref
This commit is contained in:
parent
cf192c84a8
commit
b87478f6e2
@ -20,7 +20,7 @@ namespace osu.Game.Rulesets.Catch.Mods
|
||||
public override string Description => @"Use the mouse to control the catcher.";
|
||||
|
||||
public void ApplyToDrawableRuleset(DrawableRuleset<CatchHitObject> drawableRuleset) =>
|
||||
(drawableRuleset.Playfield.Parent as Container).Add(new CatchModRelaxHelper(drawableRuleset.Playfield as CatchPlayfield));
|
||||
((Container)drawableRuleset.Playfield.Parent).Add(new CatchModRelaxHelper(drawableRuleset.Playfield as CatchPlayfield));
|
||||
|
||||
private class CatchModRelaxHelper : Drawable, IKeyBindingHandler<CatchAction>, IRequireHighFrequencyMousePosition
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user