From b005edc27f7e546aa17b475c3ff74fa9b0ed4e72 Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Sun, 14 May 2023 20:20:43 +0200 Subject: [PATCH] don't ignore new system factions If a factions expands or retreats into a system we see, we won't pick it up if we remain with old data. --- EDPlayerJournal/BGS/TransactionParser.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/EDPlayerJournal/BGS/TransactionParser.cs b/EDPlayerJournal/BGS/TransactionParser.cs index 354c845..0d9672a 100644 --- a/EDPlayerJournal/BGS/TransactionParser.cs +++ b/EDPlayerJournal/BGS/TransactionParser.cs @@ -66,8 +66,7 @@ internal class LocationParser : ITransactionParserPart { context.StationOwner = null; } - if (!context.SystemFactions.ContainsKey(entry.StarSystem) && - entry.SystemFactions != null && entry.SystemFactions.Count > 0) { + if (entry.SystemFactions != null && entry.SystemFactions.Count > 0) { context.SystemFactions[entry.StarSystem] = entry.SystemFactions; } } @@ -101,8 +100,7 @@ internal class FSDJumpParser : ITransactionParserPart { context.ControllingFaction = entry.SystemFaction; } - if (!context.SystemFactions.ContainsKey(entry.StarSystem) && - entry.SystemFactions != null && entry.SystemFactions.Count > 0) { + if (entry.SystemFactions != null && entry.SystemFactions.Count > 0) { context.SystemFactions[entry.StarSystem] = entry.SystemFactions; } }