mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 22:33:05 +08:00
Fix incorrect first object logic
This commit is contained in:
parent
2d0275ba95
commit
6649cb2204
@ -39,11 +39,13 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
{
|
{
|
||||||
if (IncreaseFirstObjectVisibility.Value)
|
if (IncreaseFirstObjectVisibility.Value)
|
||||||
{
|
{
|
||||||
|
drawables = drawables.SkipWhile(h => !IsFirstHideableObject(h));
|
||||||
|
|
||||||
var firstObject = drawables.FirstOrDefault();
|
var firstObject = drawables.FirstOrDefault();
|
||||||
if (firstObject != null)
|
if (firstObject != null)
|
||||||
firstObject.ApplyCustomUpdateState += ApplyFirstObjectIncreaseVisibilityState;
|
firstObject.ApplyCustomUpdateState += ApplyFirstObjectIncreaseVisibilityState;
|
||||||
|
|
||||||
drawables = drawables.SkipWhile(h => !IsFirstHideableObject(h)).Skip(1);
|
drawables = drawables.Skip(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var dho in drawables)
|
foreach (var dho in drawables)
|
||||||
|
Loading…
Reference in New Issue
Block a user