parsers.py
: Fix bug with 1P
/2P
start commands
This commit is contained in:
parent
4ad3c374f5
commit
6b93305d8b
@ -129,6 +129,8 @@ def split_tja_lines_into_courses(lines: List[str]) -> TJASong:
|
|||||||
# chart. But, we want multiplayer charts to inherit the
|
# chart. But, we want multiplayer charts to inherit the
|
||||||
# metadata from the course as a whole, so we deepcopy the
|
# metadata from the course as a whole, so we deepcopy the
|
||||||
# existing course for that difficulty.
|
# 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"]:
|
if value in ["P1", "P2"]:
|
||||||
current_course = current_course_basename + value
|
current_course = current_course_basename + value
|
||||||
parsed_tja.courses[current_course] = \
|
parsed_tja.courses[current_course] = \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user