Skip to content

Commit

Permalink
correct DM custom map names
Browse files Browse the repository at this point in the history
  • Loading branch information
happyleavesaoc committed Sep 24, 2022
1 parent 44cd0a6 commit 0366980
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mgz/common/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ def lookup_name(map_id, name, version, reference):
custom = True
is_de = version == Version.DE
is_hd = version == Version.HD
if (map_id != 44 and not (is_de or is_hd)) or (map_id != 59 and (is_de or is_hd)):
# 59: RM custom
# 138: DM custom
if (map_id != 44 and not (is_de or is_hd)) or (map_id not in [59, 138] and (is_de or is_hd)):
map_keys = [int(k) for k in reference['maps'].keys()]
if map_id in map_keys:
name = reference['maps'][str(map_id)]
Expand Down

0 comments on commit 0366980

Please sign in to comment.