From bb4df99539ddef9eb7d91c439fb87ac1f1fa6658 Mon Sep 17 00:00:00 2001 From: Safairette <71556532+Safairette@users.noreply.github.com> Date: Sun, 22 Dec 2024 00:28:25 +0200 Subject: [PATCH] Clean up empty prereqs --- .../Harmony/Harmony_ResearchPrerequisitesUtility.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/CombatExtended/Harmony/Harmony_ResearchPrerequisitesUtility.cs b/Source/CombatExtended/Harmony/Harmony_ResearchPrerequisitesUtility.cs index a1a7c0f111..ea5b06f6a1 100644 --- a/Source/CombatExtended/Harmony/Harmony_ResearchPrerequisitesUtility.cs +++ b/Source/CombatExtended/Harmony/Harmony_ResearchPrerequisitesUtility.cs @@ -14,6 +14,7 @@ public class Harmony_ResearchPrerequisitesUtility { pair.second.RemoveWhere(x => x is AmmoDef ammoDef && ammoDef.menuHidden); } + input.RemoveWhere(x => x.second.NullOrEmpty()); return input; } }