This commit is contained in:
Gurge44 committed 2025-07-14 16:15:25 +02:00
1 parent 9eb91936ac
commit b27e49bc45
1 file changed
+1 -1
+1 -1
View File
@@ -23,7 +23,7 @@ public static class TextBoxPatch
[HarmonyPrefix]
public static bool AllowAllCharacters(TextBoxTMP __instance, [HarmonyArgument(0)] string input, [HarmonyArgument(1)] string inputCompo = "")
{
if (!__instance.gameObject.HasParentInHierarchy("ChatScreenRoot/ChatScreenContainer")) return true;
if (Translator.GetUserTrueLang() == SupportedLangs.Russian || !__instance.gameObject.HasParentInHierarchy("ChatScreenRoot/ChatScreenContainer")) return true;
var flag = false;
__instance.AdjustCaretPosition(input.Length - __instance.text.Length);