Fix test failures

This commit is contained in:
Dean Herbert 2024-03-08 19:02:12 +08:00
parent 44d0dc6113
commit 46e5bda40c
No known key found for this signature in database

View File

@ -43,7 +43,7 @@ namespace osu.Game.Rulesets.Osu.Tests.Mods
PassCondition = () => PassCondition = () =>
{ {
var flashlightOverlay = Player.DrawableRuleset.Overlays var flashlightOverlay = Player.DrawableRuleset.Overlays
.OfType<ModFlashlight<OsuHitObject>.Flashlight>() .ChildrenOfType<ModFlashlight<OsuHitObject>.Flashlight>()
.First(); .First();
return Precision.AlmostEquals(mod.DefaultFlashlightSize * .5f, flashlightOverlay.GetSize()); return Precision.AlmostEquals(mod.DefaultFlashlightSize * .5f, flashlightOverlay.GetSize());