소스 검색

Fix for duplicate enumeration when loading patching methods

Bepis 6 년 전
부모
커밋
eba746f1ce
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
         }