From 065ab033c995d2f448196417eb9a77e35bea27fa Mon Sep 17 00:00:00 2001 From: sinaioutlander <49360850+sinaioutlander@users.noreply.github.com> Date: Sun, 13 Sep 2020 17:39:15 +1000 Subject: [PATCH] Fix crash when inspecting RigidBody2D objects --- src/Menu/Windows/ReflectionWindow.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Menu/Windows/ReflectionWindow.cs b/src/Menu/Windows/ReflectionWindow.cs index b4ed926..6288a48 100644 --- a/src/Menu/Windows/ReflectionWindow.cs +++ b/src/Menu/Windows/ReflectionWindow.cs @@ -36,13 +36,15 @@ namespace Explorer { // Causes a crash "Type.DeclaringMethod", + // Causes a crash + "Rigidbody2D.Cast", }; private static readonly HashSet _methodStartsWithBlacklist = new HashSet { // 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);