Skip to content

Commit

Permalink
Fix get_json_mods() crashing if NC w/out DT
Browse files Browse the repository at this point in the history
  • Loading branch information
Syriiin committed Dec 21, 2024
1 parent 7b66a06 commit 6859974
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/osu/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ def get_mods_string_from_json_mods(mods: dict):
def get_json_mods(mods: int, add_classic: bool) -> dict:
mods_dict = {mod_acronyms[mod]: {} for mod in mod_acronyms if mod & mods != 0}

if Mods.NIGHTCORE & mods:
if Mods.NIGHTCORE & mods and "DT" in mods_dict:
mods_dict.pop("DT")
if Mods.PERFECT & mods:
if Mods.PERFECT & mods and "SD" in mods_dict:
mods_dict.pop("SD")

if add_classic:
Expand Down

0 comments on commit 6859974

Please sign in to comment.