This commit is contained in:
NotAKidoS 2023-02-27 23:57:18 -06:00
parent 3b4f564ad8
commit 819a00b27b
2 changed files with 116 additions and 118 deletions

View file

@ -2,10 +2,10 @@
using ABI_RC.Core.Player; using ABI_RC.Core.Player;
using UnityEngine; using UnityEngine;
namespace NAK.Melons.AASBufferFix namespace NAK.Melons.AASBufferFix;
public class AASBufferHelper : MonoBehaviour
{ {
public class AASBufferHelper : MonoBehaviour
{
///public bool DebuggingFlag = false; ///public bool DebuggingFlag = false;
//public stuff //public stuff
@ -130,5 +130,4 @@ namespace NAK.Melons.AASBufferFix
/// if (!DebuggingFlag) return; /// if (!DebuggingFlag) return;
/// AASBufferFix.Logger.Msg(message); /// AASBufferFix.Logger.Msg(message);
///} ///}
}
} }

View file

@ -13,7 +13,7 @@ internal class HarmonyPatches
[HarmonyPatch(typeof(PuppetMaster), "Start")] [HarmonyPatch(typeof(PuppetMaster), "Start")]
private static void Postfix_PuppetMaster_Start(ref PuppetMaster __instance) private static void Postfix_PuppetMaster_Start(ref PuppetMaster __instance)
{ {
AASBufferHelper externalBuffer = __instance.AddComponentIfMissing<AASBufferHelper>(); __instance.AddComponentIfMissing<AASBufferHelper>();
} }
[HarmonyPostfix] [HarmonyPostfix]
@ -63,7 +63,6 @@ internal class HarmonyPatches
private static bool Prefix_PlayerSetup_SendAdvancedAvatarSettings(ref PlayerSetup __instance) private static bool Prefix_PlayerSetup_SendAdvancedAvatarSettings(ref PlayerSetup __instance)
{ {
//dont sync wrong settings to remote users //dont sync wrong settings to remote users
if (__instance.avatarIsLoading) return false; return !__instance.avatarIsLoading;
return true;
} }
} }