Remove redundant StaysOnPlate

This commit is contained in:
ekrctb
2020-11-25 07:59:45 +09:00
parent ab7251d742
commit 3c3229ac4b
3 changed files with 3 additions and 7 deletions

View File

@ -69,10 +69,10 @@ namespace osu.Game.Rulesets.Catch.UI
lastPlateableFruit.OnLoadComplete += _ => action();
}
if (result.IsHit && hitObject.HitObject is PalpableCatchHitObject fruit)
if (result.IsHit && hitObject is DrawablePalpableCatchHitObject fruit)
{
// create a new (cloned) fruit to stay on the plate. the original is faded out immediately.
var caughtFruit = (DrawableCatchHitObject)CreateDrawableRepresentation?.Invoke(fruit);
var caughtFruit = (DrawableCatchHitObject)CreateDrawableRepresentation?.Invoke(fruit.HitObject);
if (caughtFruit == null) return;