[ChatBoxExtensions] Add AAS commands.

This commit is contained in:
NotAKidoS 2023-06-27 17:38:20 -05:00
parent b1fd591645
commit 8d4f17b8d1
4 changed files with 41 additions and 4 deletions

View file

@ -12,7 +12,7 @@ public class ChatBoxExtensions : MelonMod
{
Logger = LoggerInstance;
if (!MelonMod.RegisteredMelons.Any(it => it.Info.Name == "ChatBox"))
if (RegisteredMelons.All(it => it.Info.Name != "ChatBox"))
{
Logger.Error("ChatBox was not found!");
return;
@ -23,12 +23,17 @@ public class ChatBoxExtensions : MelonMod
void ApplyIntegrations()
{
Integrations.Commands.InitializeCommandHandlers();
Integrations.ChatBoxCommands.RegisterCommands();
Integrations.ChilloutVRBaseCommands.RegisterCommands();
Integrations.ChilloutVRAASCommands.RegisterCommands();
Integrations.ChilloutVRInputCommands.RegisterCommands();
ApplyPatches(typeof(HarmonyPatches.CVRInputManagerPatches));
if (MelonMod.RegisteredMelons.Any(it => it.Info.Name == "PlayerRagdollMod"))
if (RegisteredMelons.Any(it => it.Info.Name == "PlayerRagdollMod"))
{
Integrations.PlayerRagdollModCommands.RegisterCommands();
}