2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-04-05 17:39:39 -04:00

When pre-reading current system context, consider docked Carrier jumps ()

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).
This commit is contained in:
F K 2021-12-18 16:21:18 -05:00 committed by GitHub
parent 177707f6ae
commit 44dfbe4b7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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();