Browse Source

Merge pull request #142 from js6pak/fix/v6-bepinex-version-warning

Fix "wrong version of BepInEx" warning caused by dll split in v6
Bepis 4 years ago
parent
commit
8320d65a11
1 changed files with 1 additions and 1 deletions
  1. 1 1
      BepInEx.Core/Bootstrap/BaseChainloader.cs

+ 1 - 1
BepInEx.Core/Bootstrap/BaseChainloader.cs

@@ -288,7 +288,7 @@ namespace BepInEx.Bootstrap
 			var dependencies = BepInDependency.FromCecilType(type);
 			var incompatibilities = BepInIncompatibility.FromCecilType(type);
 
-			var bepinVersion = type.Module.AssemblyReferences.FirstOrDefault(reference => reference.Name == "BepInEx")?.Version ?? new Version();
+			var bepinVersion = type.Module.AssemblyReferences.FirstOrDefault(reference => reference.Name == "BepInEx.Core")?.Version ?? new Version();
 
 			return new PluginInfo
 			{