From 7c4de9a80556d1ad0ba812f340a66730b2f0786a Mon Sep 17 00:00:00 2001 From: winstxnhdw Date: Mon, 12 Feb 2024 09:28:19 +0800 Subject: [PATCH] feat: remove ending whitespace on commands if any --- lc-hax/Scripts/Patches/CommandPatch.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lc-hax/Scripts/Patches/CommandPatch.cs b/lc-hax/Scripts/Patches/CommandPatch.cs index b3da6a25..aad2ad89 100644 --- a/lc-hax/Scripts/Patches/CommandPatch.cs +++ b/lc-hax/Scripts/Patches/CommandPatch.cs @@ -35,7 +35,7 @@ static bool Prefix(HUDManager __instance, ref bool __state) { } try { - Chat.ExecuteCommand(hudManager.chatTextField.text); + Chat.ExecuteCommand(hudManager.chatTextField.text.TrimEnd()); } catch (Exception exception) {