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

EDSM: Use loaded BackPack data, not the empty event.

This commit is contained in:
Athanasius 2021-05-20 18:26:51 +01:00
parent 143a205fb9
commit e5909e9024

View File

@ -432,6 +432,11 @@ def journal_entry(
elif entry['event'] == 'NavBeaconScan':
this.navbeaconscan = entry['NumBodies']
elif entry['event'] == 'BackPack':
# Use the stored file contents, not the empty journal event
if state['BackpackJSON']:
entry = state['BackpackJSON']
# Send interesting events to EDSM
if (
config.get_int('edsm_out') and not is_beta and not this.multicrew and credentials(cmdr) and