mirror of
https://github.com/9ParsonsB/Pulsar.git
synced 2025-04-18 09:00:38 -04:00
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).
This commit is contained in:
parent
177707f6ae
commit
44dfbe4b7e
@ -119,7 +119,7 @@ namespace Observatory
|
|||||||
foreach (var line in lines)
|
foreach (var line in lines)
|
||||||
{
|
{
|
||||||
var eventType = JournalUtilities.GetEventType(line);
|
var eventType = JournalUtilities.GetEventType(line);
|
||||||
if (eventType.Equals("FSDJump"))
|
if (eventType.Equals("FSDJump") || (eventType.Equals("CarrierJump") && line.Contains("\"Docked\":true")))
|
||||||
{
|
{
|
||||||
// Reset, start collecting again.
|
// Reset, start collecting again.
|
||||||
lastSystemLines.Clear();
|
lastSystemLines.Clear();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user