1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 18:52:55 +08:00

Add back early return in OnReleased for safety

This commit is contained in:
Dean Herbert 2023-05-08 15:43:11 +09:00
parent 693427918b
commit 814f0b3fed

View File

@ -329,6 +329,10 @@ namespace osu.Game.Rulesets.Mania.Objects.Drawables
if (HoldStartTime == null)
return;
// do not run any of this logic when rewinding, as it inverts order of presses/releases.
if (Time.Elapsed < 0)
return;
Tail.UpdateResult();
endHold();