Fix crash when inspecting RigidBody2D objects

This commit is contained in:
sinaioutlander 2020-09-13 17:39:15 +10:00
parent 11cbd24a6a
commit 065ab033c9

View File

@ -36,13 +36,15 @@ namespace Explorer
{ {
// Causes a crash // Causes a crash
"Type.DeclaringMethod", "Type.DeclaringMethod",
// Causes a crash
"Rigidbody2D.Cast",
}; };
private static readonly HashSet<string> _methodStartsWithBlacklist = new HashSet<string> private static readonly HashSet<string> _methodStartsWithBlacklist = new HashSet<string>
{ {
// Pointless (handled by Properties) // Pointless (handled by Properties)
"get_", "get_",
"set_" "set_",
}; };
public override void Init() public override void Init()
@ -194,6 +196,8 @@ namespace Explorer
continue; continue;
} }
// MelonLogger.Log($"Trying to cache member {signature}...");
try try
{ {
var cached = CacheObjectBase.GetCacheObject(member, target); var cached = CacheObjectBase.GetCacheObject(member, target);