mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 17:42:20 +03:00
monitor: Revert state['StarSystem'] addition, it's not needed.
We pass `monitor.system` in to `journal_entry()` anyway, so it doesn't need to be separately in the passed `state`.
This commit is contained in:
parent
69580bf1fd
commit
46e914fcec
@ -180,7 +180,6 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
|
|||||||
'SuitLoadouts': {},
|
'SuitLoadouts': {},
|
||||||
'Taxi': None, # True whenever we are _in_ a taxi. ie, this is reset on Disembark etc.
|
'Taxi': None, # True whenever we are _in_ a taxi. ie, this is reset on Disembark etc.
|
||||||
'Dropship': None, # Best effort as to whether or not the above taxi is a dropship.
|
'Dropship': None, # Best effort as to whether or not the above taxi is a dropship.
|
||||||
'StarSystem': None, # Best effort name of current system.
|
|
||||||
'StarPos': None, # Best effort current system's galaxy position.
|
'StarPos': None, # Best effort current system's galaxy position.
|
||||||
'Body': None,
|
'Body': None,
|
||||||
'BodyType': None,
|
'BodyType': None,
|
||||||
@ -811,13 +810,10 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
|
|||||||
self.systempopulation = entry.get('Population')
|
self.systempopulation = entry.get('Population')
|
||||||
|
|
||||||
if entry['StarSystem'] == 'ProvingGround':
|
if entry['StarSystem'] == 'ProvingGround':
|
||||||
to_set = 'CQC'
|
self.system = 'CQC'
|
||||||
|
|
||||||
else:
|
else:
|
||||||
to_set = entry['StarSystem']
|
self.system = entry['StarSystem']
|
||||||
|
|
||||||
# EDDN plugin needs this in `state`
|
|
||||||
self.state['StarSystem'] = self.system = to_set
|
|
||||||
|
|
||||||
self.station = entry.get('StationName') # May be None
|
self.station = entry.get('StationName') # May be None
|
||||||
# If on foot in-station 'Docked' is false, but we have a
|
# If on foot in-station 'Docked' is false, but we have a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user