Explorar el Código

Fix for duplicate enumeration when loading patching methods

Bepis hace 6 años
padre
commit
eba746f1ce
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      BepInEx/Bootstrap/Preloader.cs

+ 1 - 1
BepInEx/Bootstrap/Preloader.cs

@@ -243,7 +243,7 @@ namespace BepInEx.Bootstrap
                 }
             }
 
-            Logger.Log(LogLevel.Info, $"Loaded {patcherMethods.SelectMany(x => x.Value).Distinct().Count()} patcher methods from {assembly.GetName().Name}");
+            Logger.Log(LogLevel.Info, $"Loaded {patcherMethods.Select(x => x.Key).Distinct().Count()} patcher methods from {assembly.GetName().Name}");
 
             return patcherMethods;
         }