1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-22 20:00:29 +03:00

eddn: approachsettlement: Location cross-check paranoia

This commit is contained in:
Athanasius 2022-05-29 14:49:43 +01:00
parent 8bf2e498dc
commit 6b54f721b0
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

View File

@ -1159,7 +1159,12 @@ class EDDN:
#######################################################################
# Augmentations
#######################################################################
# In this case should add StarSystem and StarPos
# In this case should add SystemName and 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, system_name, system_starpos)
if isinstance(ret, str):
return ret