mirror of
https://github.com/norohind/EDMC_SpanshRouter.git
synced 2025-04-19 18:47:36 +03:00
Fixed bug with uppercase system names
This commit is contained in:
parent
40f8cbcf30
commit
167d1b0b14
3
load.py
3
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user