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

This commit is contained in:
Athanasius committed 2021-05-20 18:26:51 +01:00
1 parent 143a205fb9
commit e5909e9024
1 file changed
+5
+5
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