Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit 065ab03

Browse files
committed
Fix crash when inspecting RigidBody2D objects
1 parent 11cbd24 commit 065ab03

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Menu/Windows/ReflectionWindow.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,15 @@ public class ReflectionWindow : UIWindow
3636
{
3737
// Causes a crash
3838
"Type.DeclaringMethod",
39+
// Causes a crash
40+
"Rigidbody2D.Cast",
3941
};
4042

4143
private static readonly HashSet<string> _methodStartsWithBlacklist = new HashSet<string>
4244
{
4345
// Pointless (handled by Properties)
4446
"get_",
45-
"set_"
47+
"set_",
4648
};
4749

4850
public override void Init()
@@ -194,6 +196,8 @@ void AppendParams(ParameterInfo[] _args)
194196
continue;
195197
}
196198

199+
// MelonLogger.Log($"Trying to cache member {signature}...");
200+
197201
try
198202
{
199203
var cached = CacheObjectBase.GetCacheObject(member, target);

0 commit comments

Comments
 (0)