Fix HR mod being applied to non-fruit objects

This commit is contained in:
smoogipoo 2019-03-18 18:36:16 +09:00
parent 9cabd12c45
commit bb8171b88a

View File

@ -20,6 +20,9 @@ namespace osu.Game.Rulesets.Catch.Mods
public void ApplyToHitObject(HitObject hitObject)
{
if (!(hitObject is Fruit))
return;
var catchObject = (CatchHitObject)hitObject;
float position = catchObject.X;