From 42c1cf34aa753cb02b49f02ceb16d5959057bdef Mon Sep 17 00:00:00 2001 From: SillyStar-Github <90102598+SillyStar-Github@users.noreply.github.com> Date: Sun, 16 Nov 2025 15:33:38 -0500 Subject: [PATCH] Update CanvasUpUI_Patch.cs --- MelonLoader/Patches/Managers/CanvasUpUI_Patch.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/MelonLoader/Patches/Managers/CanvasUpUI_Patch.cs b/MelonLoader/Patches/Managers/CanvasUpUI_Patch.cs index b01b888..6f840c5 100644 --- a/MelonLoader/Patches/Managers/CanvasUpUI_Patch.cs +++ b/MelonLoader/Patches/Managers/CanvasUpUI_Patch.cs @@ -20,8 +20,11 @@ namespace PvZ_Fusion_Translator.Patches.Managers { string originalKey = StringStore.translationString.FirstOrDefault(x => x.Value.Replace("\n", " ") == text.text).Key; text.text = (StringStore.translationString.ContainsKey(originalKey + "_MG")) ? StringStore.TranslateText(originalKey + "_MG") : StringStore.TranslateText(text.text); - text.text = text.text.Replace("\n", " "); - text.font = fontAsset; + if(text.gameObject.name.Contains("LevelName")) + { + text.text = text.text.Replace("\n", " "); + } + text.font = fontAsset; } } }