mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-04 11:51:52 +02:00
Fix direction parsing.
This commit is contained in:
parent
a6275a20c0
commit
f6d5161390
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ class Sector:
|
|||
self.end: Optional[np.ndarray] = None
|
||||
self.main_direction: Optional[np.ndarray] = None
|
||||
|
||||
if "-" in text:
|
||||
if "-" in text and not text.startswith("-"):
|
||||
parts: list[str] = text.split("-")
|
||||
self.start = parse_vector(parts[0])
|
||||
self.end = parse_vector(parts[1])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue