Pārlūkot izejas kodu

Fix for duplicate enumeration when loading patching methods

Bepis 6 gadi atpakaļ
vecāks
revīzija
eba746f1ce
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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;
         }