From f02f75591ddc9e6cda79a7e7179c950d7439b702 Mon Sep 17 00:00:00 2001 From: SillyStar-Github <90102598+SillyStar-Github@users.noreply.github.com> Date: Mon, 17 Nov 2025 16:48:18 -0500 Subject: [PATCH] projectile text error fix --- MelonLoader/Patches/GameObjects/MinorObjects/Zombie_Patch.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MelonLoader/Patches/GameObjects/MinorObjects/Zombie_Patch.cs b/MelonLoader/Patches/GameObjects/MinorObjects/Zombie_Patch.cs index 6da74c5..bcdd189 100644 --- a/MelonLoader/Patches/GameObjects/MinorObjects/Zombie_Patch.cs +++ b/MelonLoader/Patches/GameObjects/MinorObjects/Zombie_Patch.cs @@ -79,6 +79,11 @@ namespace PvZ_Fusion_Translator.Patches.GameObjects.MinorObjects public static string TranslateHPText(string originalText, Zombie __instance) { + if(originalText == null) + { + return originalText; + } + string finalText = __instance.healthText.text; int fIndex = -1; bool found = false;