From 930830853172b74d3367f1d791802b12ae216c68 Mon Sep 17 00:00:00 2001 From: Salvador Cipolla Date: Fri, 10 Apr 2026 20:26:01 -0300 Subject: [PATCH] Return a copy of installedmods, enginebuilds and modtools instead of references (C4 fix) --- Knossos.NET/Classes/Knossos.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Knossos.NET/Classes/Knossos.cs b/Knossos.NET/Classes/Knossos.cs index 47e0b7df..1358710a 100644 --- a/Knossos.NET/Classes/Knossos.cs +++ b/Knossos.NET/Classes/Knossos.cs @@ -1484,7 +1484,7 @@ public static List GetInstalledModList(string? id) } else { - return installedMods; + return installedMods.ToList(); } } @@ -1527,7 +1527,7 @@ public static List GetInstalledBuildsList(string? id=null, FsoStabilit } else { - return engineBuilds; + return engineBuilds.ToList(); } } } @@ -1903,7 +1903,7 @@ public static void AddTool(Tool tool) /// List of tools or empty list public static List GetTools() { - return modTools; + return modTools.ToList(); } } }