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,8 +2,8 @@
using ABI_RC.Core.Player;
using UnityEngine;
namespace NAK.Melons.AASBufferFix
{
namespace NAK.Melons.AASBufferFix;
public class AASBufferHelper : MonoBehaviour
{
///public bool DebuggingFlag = false;
@ -131,4 +131,3 @@ namespace NAK.Melons.AASBufferFix
/// AASBufferFix.Logger.Msg(message);
///}
}
}

View file

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