ChatBoxExtensions: Recompile

This commit is contained in:
NotAKidoS 2024-06-29 22:01:27 -05:00
parent bef2440b23
commit 4ae78984af
4 changed files with 6 additions and 6 deletions

View file

@ -7,7 +7,7 @@ public class CVRInputManagerPatches
{ {
[HarmonyPostfix] [HarmonyPostfix]
[HarmonyPatch(typeof(CVRInputManager), nameof(CVRInputManager.Start))] [HarmonyPatch(typeof(CVRInputManager), nameof(CVRInputManager.Start))]
static void Postfix_CVRInputManager_Start(ref CVRInputManager __instance) private static void Postfix_CVRInputManager_Start(ref CVRInputManager __instance)
{ {
__instance.AddInputModule(ChatBoxExtensions.InputModule); __instance.AddInputModule(ChatBoxExtensions.InputModule);
} }

View file

@ -14,7 +14,7 @@ internal class ChilloutVRAASCommands : CommandBase
{ {
if (args.Length > 2 && float.TryParse(args[2], out float value)) if (args.Length > 2 && float.TryParse(args[2], out float value))
{ {
PlayerSetup.Instance.changeAnimatorParam(args[1], value); PlayerSetup.Instance.ChangeAnimatorParam(args[1], value);
} }
}); });
}, },
@ -24,7 +24,7 @@ internal class ChilloutVRAASCommands : CommandBase
{ {
if (args.Length > 2 && float.TryParse(args[2], out float value)) if (args.Length > 2 && float.TryParse(args[2], out float value))
{ {
PlayerSetup.Instance.changeAnimatorParam(args[1], value); PlayerSetup.Instance.ChangeAnimatorParam(args[1], value);
} }
}); });
}); });

View file

@ -108,7 +108,7 @@ internal class ChilloutVRBaseCommands : CommandBase
{ {
if (args.Length > 0) if (args.Length > 0)
{ {
string player = args[0y]; string player = args[0];
CVRPlayerEntity playerEnt = CVRPlayerManager.Instance.NetworkPlayers.FirstOrDefault(x => x.Username == player); CVRPlayerEntity playerEnt = CVRPlayerManager.Instance.NetworkPlayers.FirstOrDefault(x => x.Username == player);
if (playerEnt != null) BetterBetterCharacterController.Instance.TeleportPlayerTo(playerEnt.PuppetMaster.transform.position, false, false); if (playerEnt != null) BetterBetterCharacterController.Instance.TeleportPlayerTo(playerEnt.PuppetMaster.transform.position, false, false);
} }

View file

@ -21,7 +21,7 @@ public class ChatBoxExtensions : MelonMod
ApplyIntegrations(); ApplyIntegrations();
} }
void ApplyIntegrations() private void ApplyIntegrations()
{ {
Integrations.Commands.InitializeCommandHandlers(); Integrations.Commands.InitializeCommandHandlers();
@ -39,7 +39,7 @@ public class ChatBoxExtensions : MelonMod
} }
} }
void ApplyPatches(Type type) private void ApplyPatches(Type type)
{ {
try try
{ {