fix(multiplayer): cannot change playstyle when gamemode isn't osu!

This commit is contained in:
MingxuanGame
2025-08-18 11:52:31 +00:00
parent 1aa0d42e79
commit 1e85eab6b3

View File

@@ -558,7 +558,7 @@ class MultiplayerHub(Hub[MultiplayerClientState]):
if (
ruleset_id is not None
and user_beatmap.mode != GameMode.OSU
and ruleset_id != user_beatmap.mode
and ruleset_id != int(user_beatmap.mode)
):
raise InvokeException(
"Selected ruleset is not supported for the given beatmap."