1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 08:33:21 +08:00

only use LegacyReplayPressHandler on legacy replays

This commit is contained in:
James Wilson 2024-02-13 00:34:06 +00:00 committed by GitHub
parent cc733ea809
commit 5101979ac0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
@ -61,7 +61,7 @@ namespace osu.Game.Rulesets.Osu.Mods
Debug.Assert(ruleset.ReplayScore != null);
legacyReplay = ruleset.ReplayScore.ScoreInfo.IsLegacyScore;
pressHandler = new LegacyReplayPressHandler(this);
pressHandler = legacyReplay ? new LegacyReplayPressHandler(this) : new PressHandler(this);
return;
}