mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-19 02:17:38 +03:00
monitor/tracking: *Do* clear supercruisentry/body state if Station type
This commit is contained in:
parent
46fd129d3e
commit
2f2ee885c8
10
monitor.py
10
monitor.py
@ -1000,9 +1000,13 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
|
|||||||
self.state['BodyType'] = None
|
self.state['BodyType'] = None
|
||||||
|
|
||||||
elif event_type == 'supercruiseentry':
|
elif event_type == 'supercruiseentry':
|
||||||
# NB: Do **NOT** clear Body state, because we won't get a fresh
|
# We only clear Body state if the Type is Station. This is
|
||||||
# ApproachBody if we don't leave Orbital Cruise but land
|
# because we won't get a fresh ApproachBody if we don't leave
|
||||||
# again.
|
# Orbital Cruise but land again.
|
||||||
|
if self.state['BodyType'] == 'Station':
|
||||||
|
self.state['Body'] = None
|
||||||
|
self.state['BodyID'] = None
|
||||||
|
self.state['BodyType'] = None
|
||||||
|
|
||||||
###############################################################
|
###############################################################
|
||||||
# Track: Current station, if applicable
|
# Track: Current station, if applicable
|
||||||
|
Loading…
x
Reference in New Issue
Block a user