disable TextBoxPatch for chinese players

This commit is contained in:
Gurge44 committed 2026-06-28 10:20:30 +02:00
1 parent ad644dc7b3
commit 283c40444a
2 files changed
+2 -3

No files matched your search

-2
View File
@@ -21,8 +21,6 @@ public static class TextBoxPatch
[HarmonyPrefix]
public static bool AllowAllCharacters(TextBoxTMP __instance, [HarmonyArgument(0)] char i, ref bool __result)
{
if (Translator.GetUserTrueLang() is SupportedLangs.SChinese or SupportedLangs.TChinese or SupportedLangs.Korean) return true;
if (!__instance.IpMode && i is '\'' or '"' or '’' or '`' or '-' or '–' or '—' or '‐' or '.' or ',' or ':' or ';' or '!' or '?' or '(' or ')' or '[' or ']' or '{' or '}' or '<' or '>' or '+' or '=' or '~' or '^' or '*' or '%' or '&' or '|' or '$' or '€' or '£' or '¥' or '₽' or >= '\u0100' and <= '\u024F' or >= '\u0370' and <= '\u03FF')
{
__result = true;