mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-04 01:21:03 +03:00
EDSM: Use loaded BackPack data, not the empty event.
This commit is contained in:
parent
143a205fb9
commit
e5909e9024
@ -432,6 +432,11 @@ def journal_entry(
|
|||||||
elif entry['event'] == 'NavBeaconScan':
|
elif entry['event'] == 'NavBeaconScan':
|
||||||
this.navbeaconscan = entry['NumBodies']
|
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
|
# Send interesting events to EDSM
|
||||||
if (
|
if (
|
||||||
config.get_int('edsm_out') and not is_beta and not this.multicrew and credentials(cmdr) and
|
config.get_int('edsm_out') and not is_beta and not this.multicrew and credentials(cmdr) and
|
||||||
|
Loading…
x
Reference in New Issue
Block a user