fix chat input staying red

This commit is contained in:
Gurge44 committed 2026-08-13 15:56:28 +02:00
1 parent 919ea648b6
commit 3952ea745c
1 file changed
+3 -1
+3 -1
View File
@@ -54,7 +54,6 @@ public static class TextBoxPatch
__result = currentChar is not ('\b' or '\r' or '[');
return false;
}
[HarmonyPatch(typeof(TextBoxTMP), nameof(TextBoxTMP.SetText))]
[HarmonyPostfix]
@@ -79,6 +78,9 @@ public static class TextBoxPatch
{
Destroy();
IsInvalidCommand = false;
Color textColor = Main.DarkTheme.Value ? Color.white : Color.black;
__instance.compoText.Color(textColor);
__instance.outputText.color = textColor;
return;
}