1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-17 17:42:20 +03:00

Also handle Embark (properly) in EDSM and Inara plugins.

This commit is contained in:
Athanasius 2021-05-01 13:50:45 +01:00
parent 02052dd90e
commit 844e6115e3
2 changed files with 12 additions and 0 deletions

View File

@ -382,6 +382,12 @@ def journal_entry(
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
if config.get_str('station_provider') == 'EDSM':
to_set = this.station
if not this.station:

View File

@ -395,6 +395,12 @@ def journal_entry( # noqa: C901, CCR001
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
if config.get_int('inara_out') and not is_beta and not this.multicrew and credentials(cmdr):
current_creds = Credentials(this.cmdr, this.FID, str(credentials(this.cmdr)))
try: