Fixed bug with uppercase system names

This commit is contained in:
CMDR-Kiel42 2020-08-10 20:58:33 +02:00
parent 40f8cbcf30
commit 167d1b0b14

View File

@ -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: