1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-18 18:07:37 +03:00

EDDB: Don't blank station when Embarking OnStation to own ship.

This commit is contained in:
Athanasius 2021-05-01 13:47:52 +01:00
parent f6cb69ebad
commit 02052dd90e

View File

@ -123,7 +123,13 @@ def journal_entry(cmdr, is_beta, system, station, entry, state):
this.station_marketid = entry.get('MarketID') or this.station_marketid
# We might pick up StationName in DockingRequested, make sure we clear it if leaving
if entry['event'] in ('Undocked', 'FSDJump', 'SupercruiseEntry', 'Embark'):
if entry['event'] in ('Undocked', 'FSDJump', 'SupercruiseEntry'):
this.station = None
this.station_marketid = None
if entry['event'] == 'Embark' and not entry.get('OnStation'):
# If we're embarking OnStation to a Taxi/Dropship we'll also get an
# Undocked event.
this.station = None
this.station_marketid = None