Explorar o código

Clean up IsDotNet46 check

ghorsington %!s(int64=4) %!d(string=hai) anos
pai
achega
e3ed94f535
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      BepInEx.Preloader/Preloader.cs

+ 1 - 1
BepInEx.Preloader/Preloader.cs

@@ -28,7 +28,7 @@ namespace BepInEx.Preloader
 
 		public static bool IsPostUnity2017 { get; } = File.Exists(Path.Combine(Paths.ManagedPath, "UnityEngine.CoreModule.dll"));
 
-		public static bool IsDotNet46 { get; } = string.Compare("4.0.30319.42000", Environment.Version.ToString(), StringComparison.Ordinal) <= 0;
+		public static bool IsDotNet46 { get; } = new Version("4.0.30319.42000") <= Environment.Version;
 
 		static Preloader()
 		{