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

Commit 816596c

Browse files
committed
Fixed CloseUi xref.
1 parent 9e30f4e commit 816596c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

VRChat/VrcUiExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public static void CloseUi(this VRCUiManager uiManager)
8383
if (_closeUi == null)
8484
{
8585
_closeUi = (CloseUiDelegate)Delegate.CreateDelegate(typeof(CloseUiDelegate),
86-
typeof(VRCUiManager).GetMethods().FirstOrDefault(m => m.Name.StartsWith("Method_Public_Void_Boolean_Boolean") && !m.Name.Contains("PDM") && XrefUtils.CheckUsing(m, "TrimCache")));
86+
typeof(VRCUiManager).GetMethods().FirstOrDefault(m => m.Name.StartsWith("Method_Public_Void_Boolean_Boolean") && !m.Name.Contains("PDM") && XrefUtils.CheckUsedBy(m, "ChangeToSelectedAvatar")));
8787
}
8888

8989
_closeUi(uiManager, true, false);

0 commit comments

Comments
 (0)