mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 22:39:22 +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]
|
[HarmonyPostfix]
|
||||||
[HarmonyPatch(typeof(PlayerSetup), nameof(PlayerSetup.SetupAvatar))]
|
[HarmonyPatch(typeof(PlayerSetup), nameof(PlayerSetup.SetupAvatarDesktop))]
|
||||||
private static void Postfix_PlayerSetup_SetupAvatar(GameObject inAvatar)
|
private static void Postfix_PlayerSetup_SetupAvatarDesktop(ref PlayerSetup __instance)
|
||||||
{
|
{
|
||||||
if (!ModSettings.EntryEnabled.Value)
|
if (!ModSettings.EntryEnabled.Value)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
IKManager.Instance?.OnAvatarInitialized(inAvatar);
|
IKManager.Instance?.OnAvatarInitialized(__instance._avatar);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
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);
|
DesktopVRIK.Logger.Error(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue