mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-14 16:27:13 +03:00
EDDB: Use only state['SystemName'] for this.system_name tracking
This commit is contained in:
parent
86e81adb3d
commit
dbad45cf3b
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user