From 7a69ca5e6b2f6b8f3ed6307728ab24dd727a6fa9 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Fri, 4 Jun 2021 18:57:05 +0100 Subject: [PATCH] Inara: Remove useless/wrong setCommanderTravelLocation from SupercruiseEntry This is old code, pre-dating the move to EDCD. We could only possibly set the system name and address from this, and would always have already set this from login Location event, or any jump-in event. --- plugins/inara.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/plugins/inara.py b/plugins/inara.py index 86867aff..50ab078f 100644 --- a/plugins/inara.py +++ b/plugins/inara.py @@ -605,18 +605,6 @@ def journal_entry( # noqa: C901, CCR001 this.station = None elif event_name == 'SupercruiseEntry': - if this.undocked: - # Staying in system after undocking - send any pending events from in-station action - new_add_event( - 'setCommanderTravelLocation', - entry['timestamp'], - { - 'starsystemName': system, - 'shipType': state['ShipType'], - 'shipGameID': state['ShipID'], - } - ) - this.undocked = False elif event_name == 'SupercruiseExit':