mirror of
https://github.com/ppy/osu.git
synced 2026-06-08 19:24:22 +08:00
Fix taiko drawable hit content not correctly being removed on regeneration
This commit is contained in:
@@ -137,7 +137,9 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables
|
||||
{
|
||||
Size = BaseSize = new Vector2(TaikoHitObject.DEFAULT_SIZE);
|
||||
|
||||
MainPiece?.Expire();
|
||||
if (MainPiece != null)
|
||||
Content.Remove(MainPiece);
|
||||
|
||||
Content.Add(MainPiece = CreateMainPiece());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user