From a7123bf869f799b6083f2b27acec30cd079d1abe Mon Sep 17 00:00:00 2001 From: Daiter Date: Wed, 6 Mar 2024 13:07:30 +0300 Subject: [PATCH] fm --- osu.Game.Rulesets.Mania/Mods/ManiaModInvert.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/osu.Game.Rulesets.Mania/Mods/ManiaModInvert.cs b/osu.Game.Rulesets.Mania/Mods/ManiaModInvert.cs index 6768c99aab..ecb11ba377 100644 --- a/osu.Game.Rulesets.Mania/Mods/ManiaModInvert.cs +++ b/osu.Game.Rulesets.Mania/Mods/ManiaModInvert.cs @@ -47,7 +47,6 @@ namespace osu.Game.Rulesets.Mania.Mods List<(double startTime, IList samples, string type)> locations; if (FullInvert.Value) - { locations = column.OfType().Select(n => (startTime: n.StartTime, samples: n.Samples, type: "note")) .Concat(column.OfType().SelectMany(h => new[] { @@ -55,12 +54,10 @@ namespace osu.Game.Rulesets.Mania.Mods (startTime: h.EndTime, samples: h.GetNodeSamples(1), type: "note") })) .OrderBy(h => h.startTime).ToList(); - } else - { locations = column.Select(n => (startTime: n.StartTime, samples: n.Samples, type: "note")) .OrderBy(h => h.startTime).ToList(); - } + for (int i = 0; i < locations.Count - 1; i++) { if (locations[i].type == "release") @@ -84,6 +81,7 @@ namespace osu.Game.Rulesets.Mania.Mods NodeSamples = new List> { locations[i].samples, Array.Empty() } }); } + newObjects.AddRange(newColumnObjects); }