Reintroduce PalpableCatchHitObject at data level

This commit is contained in:
Bartłomiej Dach
2020-08-20 18:48:01 +02:00
parent 45e2ea71b4
commit 28534c1599
5 changed files with 18 additions and 9 deletions

View File

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