mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-02 08:31:16 +03:00
eddn: scanbarycentre: Location cross-check paranoia
This commit is contained in:
parent
e38ea28ba6
commit
2e6d6b8c02
@ -1045,6 +1045,12 @@ class EDDN:
|
|||||||
#######################################################################
|
#######################################################################
|
||||||
# Augmentations
|
# Augmentations
|
||||||
#######################################################################
|
#######################################################################
|
||||||
|
# In this case should add StarPos, but only if the
|
||||||
|
# SystemAddress of where we think we are matches.
|
||||||
|
if this.systemaddress is None or this.systemaddress != entry['SystemAddress']:
|
||||||
|
logger.warning("SystemAddress isn't current location! Can't add augmentations!")
|
||||||
|
return 'Wrong System! Missed jump ?'
|
||||||
|
|
||||||
ret = this.eddn.entry_augment_system_data(entry, entry['StarSystem'], system_starpos)
|
ret = this.eddn.entry_augment_system_data(entry, entry['StarSystem'], system_starpos)
|
||||||
if isinstance(ret, str):
|
if isinstance(ret, str):
|
||||||
return ret
|
return ret
|
||||||
|
Loading…
x
Reference in New Issue
Block a user