Explorar el Código

Skip inheritance check for unresolved types

ghorsington hace 5 años
padre
commit
0d1049c56c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      BepInEx/Utility.cs

+ 1 - 1
BepInEx/Utility.cs

@@ -132,7 +132,7 @@ namespace BepInEx
 		{
 			if (self.FullName == td.FullName)
 				return true;
-			return self.FullName != "System.Object" && (self.BaseType?.Resolve().IsSubtypeOf(td) ?? false);
+			return self.FullName != "System.Object" && (self.BaseType?.Resolve()?.IsSubtypeOf(td) ?? false);
 		}
 
 		/// <summary>