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