mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Replace all legacy ruleset checks with a helper property call
This commit is contained in:
@ -7,7 +7,6 @@ using osu.Game.Beatmaps;
|
||||
using osu.Game.Online.API;
|
||||
using osu.Game.Online.Rooms;
|
||||
using osu.Game.Online.Solo;
|
||||
using osu.Game.Rulesets;
|
||||
using osu.Game.Scoring;
|
||||
|
||||
namespace osu.Game.Screens.Play
|
||||
@ -32,7 +31,7 @@ namespace osu.Game.Screens.Play
|
||||
if (beatmapId <= 0)
|
||||
return null;
|
||||
|
||||
if (rulesetId < 0 || rulesetId > ILegacyRuleset.MAX_LEGACY_RULESET_ID)
|
||||
if (!Ruleset.Value.IsLegacyRuleset)
|
||||
return null;
|
||||
|
||||
return new CreateSoloScoreRequest(beatmapId, rulesetId, Game.VersionHash);
|
||||
|
Reference in New Issue
Block a user