From 167d1b0b14f61c522b84fc84539d140f22dd05b6 Mon Sep 17 00:00:00 2001 From: CMDR-Kiel42 Date: Mon, 10 Aug 2020 20:58:33 +0200 Subject: [PATCH] Fixed bug with uppercase system names --- load.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/load.py b/load.py index 7dc1688..826d56c 100644 --- a/load.py +++ b/load.py @@ -22,7 +22,8 @@ def plugin_stop(): def journal_entry(cmdr, is_beta, system, station, entry, state): global spansh_router - if (entry['event'] in ['FSDJump', 'Location', 'SupercruiseEntry', 'SupercruiseExit']) and entry["StarSystem"] == spansh_router.next_stop: + if ( entry['event'] in ['FSDJump', 'Location', 'SupercruiseEntry', 'SupercruiseExit'] + and entry["StarSystem"].lower() == spansh_router.next_stop.lower()): spansh_router.update_route() spansh_router.set_source_ac(entry["StarSystem"]) elif entry['event'] == 'FSSDiscoveryScan' and entry['SystemName'] == spansh_router.next_stop: