From f6cb69ebadb2d8d60d2a47ec6d9a5de0bea22de9 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sat, 1 May 2021 13:12:14 +0100 Subject: [PATCH] Embark: Keep monitor.station set when Embarking OnStation. --- monitor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/monitor.py b/monitor.py index 8bb9cd8b..4f52ea06 100644 --- a/monitor.py +++ b/monitor.py @@ -639,9 +639,6 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below self.stationservices = None elif event_type == 'Embark': - # If we've embarked then we're no longer on the station. - - # alpha4 # This event is logged when a player (on foot) gets into a ship or SRV # Parameters: # • SRV: true if getting into SRV, false if getting into a ship @@ -658,6 +655,9 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below # • StationType # • MarketID self.station = None + if entry.get('OnStation'): + self.station = entry.get('StationName', '') + self.state['OnFoot'] = False elif event_type == 'Disembark':