projectile text error fix
This commit is contained in:
parent
3225f85fe4
commit
f02f75591d
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue