diff --git a/ConfuserEx/ComponentDiscovery.cs b/ConfuserEx/ComponentDiscovery.cs index 6df97f110..4830e345f 100644 --- a/ConfuserEx/ComponentDiscovery.cs +++ b/ConfuserEx/ComponentDiscovery.cs @@ -54,10 +54,18 @@ public string PluginPath { } public void AddProtection(Info info) { + foreach (var comp in protections) { + if (comp.Id == info.id) + return; + } protections.Add(new InfoComponent(info)); } public void AddPacker(Info info) { + foreach (var comp in packers) { + if (comp.Id == info.id) + return; + } packers.Add(new InfoComponent(info)); }