소스 검색

Skip inheritance check for unresolved types

ghorsington 5 년 전
부모
커밋
0d1049c56c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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>