From e5909e90240121c37f02c67aa7bb9de2ff59d3b3 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Thu, 20 May 2021 18:26:51 +0100 Subject: [PATCH] EDSM: Use loaded BackPack data, not the empty event. --- plugins/edsm.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/edsm.py b/plugins/edsm.py index 66b833c6..422d0b56 100644 --- a/plugins/edsm.py +++ b/plugins/edsm.py @@ -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