diff --git a/public/Nitrocid/Kernel/Extensions/InterAddonTools.cs b/public/Nitrocid/Kernel/Extensions/InterAddonTools.cs index bf841b451..c68a02d25 100644 --- a/public/Nitrocid/Kernel/Extensions/InterAddonTools.cs +++ b/public/Nitrocid/Kernel/Extensions/InterAddonTools.cs @@ -140,7 +140,7 @@ public static Dictionary ListAvailableFunctions(string addon // Make sure that overloaded methods that have the same name don't conflict with another method int iter = 1; - while (functions.ContainsKey(name)) + while (functions.ContainsKey(finalName)) { iter++; finalName = name + iter; diff --git a/public/Nitrocid/Modifications/Communication/InterModTools.cs b/public/Nitrocid/Modifications/Communication/InterModTools.cs index 40f2829bd..536bbe5a1 100644 --- a/public/Nitrocid/Modifications/Communication/InterModTools.cs +++ b/public/Nitrocid/Modifications/Communication/InterModTools.cs @@ -101,7 +101,7 @@ public static Dictionary ListAvailableFunctions(string modNa // Make sure that overloaded methods that have the same name don't conflict with another method int iter = 1; - while (functions.ContainsKey(name)) + while (functions.ContainsKey(finalName)) { iter++; finalName = name + iter;