Browse Source

Fix for duplicate enumeration when loading patching methods

Bepis 6 năm trước cách đây
mục cha
commit
eba746f1ce
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
         }