mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-15 08:40:34 +03:00
monitor: Only forget station on Disembark if not from own ship
This commit is contained in:
parent
06568aeb2e
commit
13824c53bc
@ -623,7 +623,12 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
|
||||
|
||||
elif event_type == 'Disembark':
|
||||
# We don't yet have a way, other than LoadGame+Location, to detect if we *are* on a station on-foot.
|
||||
self.station = None
|
||||
|
||||
# If we're not exiting one of these then it's from our own ship, and then we should already have
|
||||
# self.station set correctly.
|
||||
if entry['SRV'] or entry['Taxi'] or entry['Multicrew']:
|
||||
self.station = None
|
||||
|
||||
self.state['OnFoot'] = True
|
||||
|
||||
elif event_type in ('Location', 'FSDJump', 'Docked', 'CarrierJump'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user