projectile text error fix

This commit is contained in:
SillyStar-Github 2025-11-17 16:48:18 -05:00
parent 3225f85fe4
commit f02f75591d

View file

@ -79,6 +79,11 @@ namespace PvZ_Fusion_Translator.Patches.GameObjects.MinorObjects
public static string TranslateHPText(string originalText, Zombie __instance) public static string TranslateHPText(string originalText, Zombie __instance)
{ {
if(originalText == null)
{
return originalText;
}
string finalText = __instance.healthText.text; string finalText = __instance.healthText.text;
int fIndex = -1; int fIndex = -1;
bool found = false; bool found = false;