From 44dfbe4b7e9f908d0fbba27d9d48000a74d3e969 Mon Sep 17 00:00:00 2001 From: F K <54195004+fredjk-gh@users.noreply.github.com> Date: Sat, 18 Dec 2021 16:21:18 -0500 Subject: [PATCH] When pre-reading current system context, consider docked Carrier jumps (#45) System context pre-reading logic previously assumed the player jumped into the current system in their own ship as a pilot. Arriving docked on their carrier was thus missed and may have resulted in processing more than one systems worth of context (or simply failing to pre-read context). --- ObservatoryCore/LogMonitor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ObservatoryCore/LogMonitor.cs b/ObservatoryCore/LogMonitor.cs index 11f3eba..bcfc6d0 100644 --- a/ObservatoryCore/LogMonitor.cs +++ b/ObservatoryCore/LogMonitor.cs @@ -119,7 +119,7 @@ namespace Observatory foreach (var line in lines) { var eventType = JournalUtilities.GetEventType(line); - if (eventType.Equals("FSDJump")) + if (eventType.Equals("FSDJump") || (eventType.Equals("CarrierJump") && line.Contains("\"Docked\":true"))) { // Reset, start collecting again. lastSystemLines.Clear();