mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
[DesktopVRIK] Changed patch location to be compatible with AvatarScaleMod.
This commit is contained in:
parent
d1547e2e92
commit
71fa8a9c56
1 changed files with 4 additions and 4 deletions
|
@ -37,19 +37,19 @@ internal class PlayerSetupPatches
|
|||
}
|
||||
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch(typeof(PlayerSetup), nameof(PlayerSetup.SetupAvatar))]
|
||||
private static void Postfix_PlayerSetup_SetupAvatar(GameObject inAvatar)
|
||||
[HarmonyPatch(typeof(PlayerSetup), nameof(PlayerSetup.SetupAvatarDesktop))]
|
||||
private static void Postfix_PlayerSetup_SetupAvatarDesktop(ref PlayerSetup __instance)
|
||||
{
|
||||
if (!ModSettings.EntryEnabled.Value)
|
||||
return;
|
||||
|
||||
try
|
||||
{
|
||||
IKManager.Instance?.OnAvatarInitialized(inAvatar);
|
||||
IKManager.Instance?.OnAvatarInitialized(__instance._avatar);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
DesktopVRIK.Logger.Error($"Error during the patched method {nameof(Postfix_PlayerSetup_SetupAvatar)}");
|
||||
DesktopVRIK.Logger.Error($"Error during the patched method {nameof(Postfix_PlayerSetup_SetupAvatarDesktop)}");
|
||||
DesktopVRIK.Logger.Error(e);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue