Maintain catch hit explosion by lifetime entries

- Fix hit explosion not showing when a replay is rewound to a time after a hit object is caught
This commit is contained in:
ekrctb
2021-06-04 19:46:50 +09:00
parent 2069a5bd28
commit 181f1da3d3
5 changed files with 66 additions and 38 deletions

View File

@ -216,7 +216,7 @@ namespace osu.Game.Rulesets.Catch.Tests
AddStep("enable hit lighting", () => config.SetValue(OsuSetting.HitLighting, true));
AddStep("catch fruit", () => attemptCatch(new Fruit()));
AddAssert("correct hit lighting colour", () =>
catcher.ChildrenOfType<HitExplosion>().First()?.ObjectColour == fruitColour);
catcher.ChildrenOfType<HitExplosion>().First()?.Entry?.ObjectColour == fruitColour);
}
[Test]