From d1ec783f0d83b1fa17dce67aba82a1b04914d509 Mon Sep 17 00:00:00 2001 From: SokyranTheDragon Date: Mon, 5 Aug 2024 21:33:34 +0200 Subject: [PATCH] Exclude Spectator faction from FactionRepeater This should fix the issues with extra missions generating (and often causing errors) due to the game trying to generate them for the Spectator faction. --- Source/Client/Factions/FactionRepeater.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Client/Factions/FactionRepeater.cs b/Source/Client/Factions/FactionRepeater.cs index 907d5370..5fccf22d 100644 --- a/Source/Client/Factions/FactionRepeater.cs +++ b/Source/Client/Factions/FactionRepeater.cs @@ -13,9 +13,13 @@ public static bool Template(IDictionary factionIdToData, Action da { if (Multiplayer.Client == null || ignore) return true; + var spectatorId = Multiplayer.WorldComp.spectatorFaction.loadID; ignore = true; foreach (var (id, data) in factionIdToData) { + if (id == spectatorId) + continue; + map.PushFaction(id); try {