mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
a
This commit is contained in:
1 parent
9eb91936ac
commit
b27e49bc45
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user