1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 09:07:25 +08:00

Fix incorrect first object logic

This commit is contained in:
Dean Herbert 2020-10-09 06:41:53 +09:00
parent 2d0275ba95
commit 6649cb2204

View File

@ -39,11 +39,13 @@ namespace osu.Game.Rulesets.Mods
{
if (IncreaseFirstObjectVisibility.Value)
{
drawables = drawables.SkipWhile(h => !IsFirstHideableObject(h));
var firstObject = drawables.FirstOrDefault();
if (firstObject != null)
firstObject.ApplyCustomUpdateState += ApplyFirstObjectIncreaseVisibilityState;
drawables = drawables.SkipWhile(h => !IsFirstHideableObject(h)).Skip(1);
drawables = drawables.Skip(1);
}
foreach (var dho in drawables)