mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 15:03:13 +08:00
Use correct container type when removing fruit
(cherry picked from commit a2be7f7)
This commit is contained in:
parent
abcfe08f8d
commit
5b190d3cd2
@ -15,6 +15,7 @@ using osu.Game.Rulesets.Catch.Objects;
|
||||
using osu.Game.Rulesets.Catch.Objects.Drawable;
|
||||
using osu.Game.Rulesets.Judgements;
|
||||
using osu.Game.Rulesets.Objects.Drawables;
|
||||
using osu.Game.Rulesets.UI;
|
||||
using OpenTK;
|
||||
using OpenTK.Graphics;
|
||||
|
||||
@ -48,7 +49,7 @@ namespace osu.Game.Rulesets.Catch.UI
|
||||
var screenSpacePosition = fruit.ScreenSpaceDrawQuad.Centre;
|
||||
|
||||
// todo: make this less ugly, somehow.
|
||||
(fruit.Parent as Container<DrawableHitObject>)?.Remove(fruit);
|
||||
(fruit.Parent as HitObjectContainer)?.Remove(fruit);
|
||||
(fruit.Parent as Container)?.Remove(fruit);
|
||||
|
||||
fruit.RelativePositionAxes = Axes.None;
|
||||
|
Loading…
Reference in New Issue
Block a user