mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-01 22:09:23 +00:00
cleanup
This commit is contained in:
parent
3b4f564ad8
commit
819a00b27b
2 changed files with 116 additions and 118 deletions
|
@ -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);
|
||||||
///}
|
///}
|
||||||
}
|
|
||||||
}
|
}
|
|
@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue