mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
ok I'm done with this bs
This commit is contained in:
1 parent
a9813a5b80
commit
63ce2008d9
25 files changed
+165
-122
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user