From dbad45cf3b1d7eab6d7880ac46ed0bd4a2842dfe Mon Sep 17 00:00:00 2001 From: Athanasius Date: Mon, 9 Jan 2023 15:20:21 +0000 Subject: [PATCH] EDDB: Use only state['SystemName'] for this.system_name tracking --- plugins/eddb.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/plugins/eddb.py b/plugins/eddb.py index 1c53ae5b..51291c37 100644 --- a/plugins/eddb.py +++ b/plugins/eddb.py @@ -187,12 +187,6 @@ def journal_entry( # noqa: CCR001 this.system_address = state['SystemAddress'] this.system_name = state['SystemName'] - # Always update our system address even if we're not currently the provider for system or station, but dont update - # on events that contain "future" data, such as FSDTarget - if entry['event'] in ('Location', 'Docked', 'CarrierJump', 'FSDJump'): - this.system_address = entry.get('SystemAddress') or this.system_address - this.system_name = entry.get('StarSystem') or this.system_name - # We need pop == 0 to set the value so as to clear 'x' in systems with # no stations. pop = entry.get('Population')