diff --git a/monitor.py b/monitor.py index a2fbc1b5..2e1b8760 100644 --- a/monitor.py +++ b/monitor.py @@ -669,10 +669,10 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below self.state['Cargo'].update({self.canonicalise(x['Name']): x['Count'] for x in clean}) elif event_type == 'NavRoute': - # Added in ED 3.7 - multi-hop route details in Route.json + # Added in ED 3.7 - multi-hop route details in NavRoute.json with open(join(self.currentdir, 'NavRoute.json'), 'rb') as rf: # type: ignore entry = json.load(rf) - self.state['Route'] = entry + self.state['NavRoute'] = entry elif event_type in ('CollectCargo', 'MarketBuy', 'BuyDrones', 'MiningRefined'): commodity = self.canonicalise(entry['Type'])