From 834debde988e5f0612da3880b0deb979dbc8ef5e Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sun, 29 May 2022 14:56:33 +0100 Subject: [PATCH] eddn: codexentry: Location cross-check paranoia --- plugins/eddn.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/eddn.py b/plugins/eddn.py index 24ed24b9..d39c6c60 100644 --- a/plugins/eddn.py +++ b/plugins/eddn.py @@ -946,7 +946,12 @@ class EDDN: ####################################################################### # Augmentations ####################################################################### - # General 'system' 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['System'], system_starpos) if isinstance(ret, str): return ret