Merge branch 'cassidy'

This commit is contained in:
SillyStar-Github 2025-11-16 03:47:23 -05:00
commit 28e9a65547

View file

@ -18,7 +18,15 @@ namespace PvZ_Fusion_Translator.Patches.GameObjects
{
if(__instance.currentSelect != null)
{
text.text = translatedTravelBuffs[buffLinks[(BuffType)__instance.currentSelect.theBuffType]][__instance.currentSelect.theBuffNumber];
var buffList = translatedTravelBuffs[buffLinks[(BuffType)__instance.currentSelect.theBuffType]];
if(__instance.currentSelect.theBuffNumber < buffList.Count)
{
text.text = buffList[__instance.currentSelect.theBuffNumber];
}
else
{
text.text = StringStore.TranslateText(text.text);
}
}
}
foreach (var textMesh in __instance.points)