support custom command aliases (without deleting anything necessary)

This commit is contained in:
Gurge44 committed 2026-01-27 09:50:27 +01:00
1 parent 8f6c91f21f
commit 66ac4fbb42
12 files changed
+390 -843

No files matched your search

+1 -1
View File
@@ -135,7 +135,7 @@ public static class TextBoxPatch
var exactMatch = false;
bool english = TranslationController.Instance.currentLanguage.languageID == SupportedLangs.English;
foreach (Command cmd in Command.AllCommands.Values)
foreach (Command cmd in Command.AllCommands)
{
string[] commandForms = english ? [.. cmd.CommandForms.TakeWhile(x => x.All(char.IsAscii))] : cmd.CommandForms;