ok I'm done with this bs

This commit is contained in:
Gurge44 committed 2025-07-07 21:46:08 +02:00
1 parent a9813a5b80
commit 63ce2008d9
25 files changed
+165 -122

No files matched your search

+1
View File
@@ -316,6 +316,7 @@ public static class TextBoxPatch
public static bool IsCharAllowedPatch(TextBoxTMP __instance, [HarmonyArgument(0)] char i, ref bool __result)
{
if (!__instance.gameObject.HasParentInHierarchy("ChatScreenRoot/ChatScreenContainer")) return true;
if (Translator.GetUserTrueLang() is SupportedLangs.Japanese or SupportedLangs.Korean or SupportedLangs.Russian or SupportedLangs.SChinese or SupportedLangs.TChinese) return true;
__result = i is not '\b' and not '\n' and not '\r';
return false;
}