This commit is contained in:
Ape committed 2026-06-07 13:52:31 +02:00
1 parent 5e74dd1f84
commit 8e013830b6
6 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -78,11 +78,11 @@ internal static class CommandHelper
[HarmonyPostfix]
public static void Postfix(TextBoxTMP __instance)
{
if (!HudManager.InstanceExists || HudManager.Instance.Chat == null || HudManager.Instance.Chat.freeChatField == null || __instance != HudManager.Instance.Chat.freeChatField.textArea) return;
if (!HudManager.InstanceExists || HudManager.Instance.Chat == null || HudManager.Instance.Chat.freeChatField == null || HudManager.Instance.Chat.freeChatField.textArea == null || __instance != HudManager.Instance.Chat.freeChatField.textArea) return;
if (Main.DisableCommandHelper.Value || !AmongUsClient.Instance.AmHost)
{
HelperText.enabled = false;
if (HelperText != null) HelperText.enabled = false;
return;
}