mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
another pointless refactor
This commit is contained in:
parent
27a05545ed
commit
870a29ca9f
2 changed files with 99 additions and 82 deletions
|
@ -14,7 +14,6 @@ internal class HarmonyPatches
|
|||
private static void Postfix_PuppetMaster_Start(ref PuppetMaster __instance)
|
||||
{
|
||||
AASBufferHelper externalBuffer = __instance.AddComponentIfMissing<AASBufferHelper>();
|
||||
externalBuffer.puppetMaster = __instance;
|
||||
}
|
||||
|
||||
[HarmonyPostfix]
|
||||
|
@ -38,7 +37,7 @@ internal class HarmonyPatches
|
|||
private static bool Prefix_PuppetMaster_ApplyAdvancedAvatarSettings(float[] settingsFloat, int[] settingsInt, byte[] settingsByte, ref PuppetMaster __instance)
|
||||
{
|
||||
AASBufferHelper externalBuffer = __instance.GetComponent<AASBufferHelper>();
|
||||
if (externalBuffer != null && !externalBuffer.isAcceptingAAS)
|
||||
if (externalBuffer != null && !externalBuffer.GameHandlesAAS)
|
||||
{
|
||||
externalBuffer.OnApplyAAS(settingsFloat, settingsInt, settingsByte);
|
||||
return false;
|
||||
|
@ -51,7 +50,7 @@ internal class HarmonyPatches
|
|||
private static bool Prefix_PuppetMaster_ApplyAdvancedAvatarSettingsFromBuffer(ref Animator ____animator)
|
||||
{
|
||||
AASBufferHelper externalBuffer = ____animator.GetComponentInParent<AASBufferHelper>();
|
||||
if (externalBuffer != null && !externalBuffer.isAcceptingAAS)
|
||||
if (externalBuffer != null && !externalBuffer.GameHandlesAAS)
|
||||
{
|
||||
//dont apply if stable buffer no exist
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue