From e38ea28ba6371ff07db4ec4ca6fa69ad389fbb32 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sun, 29 May 2022 15:05:11 +0100 Subject: [PATCH] eddn: navbeaconscan: Location cross-check paranoia --- plugins/eddn.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/eddn.py b/plugins/eddn.py index abb128ce..ff88b1da 100644 --- a/plugins/eddn.py +++ b/plugins/eddn.py @@ -896,6 +896,12 @@ class EDDN: ####################################################################### # Augmentations ####################################################################### + # In this case should add StarSystem 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