mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:57:39 +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)
|
||||
{
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user