1
0
mirror of synced 2024-11-23 21:20:56 +01:00

parsers.py: Fix bug with 1P/2P start commands

This commit is contained in:
Viv 2024-02-10 18:09:28 -05:00
parent 4ad3c374f5
commit 6b93305d8b

View File

@ -129,6 +129,8 @@ def split_tja_lines_into_courses(lines: List[str]) -> TJASong:
# chart. But, we want multiplayer charts to inherit the
# metadata from the course as a whole, so we deepcopy the
# existing course for that difficulty.
if value in ["1P", "2P"]:
value = value[1] + value[0] # Fix user typo (e.g. 1P -> P1)
if value in ["P1", "P2"]:
current_course = current_course_basename + value
parsed_tja.courses[current_course] = \