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