From cc73dda11199b6aceddee2f4c7d4891ec8523d94 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Sat, 20 Aug 2022 21:59:49 -0400 Subject: [PATCH] fixed a tooltip bug from earlier --- Items/CalamityGlobalItemTooltip.cs | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index 6dc0363ccd..a13cf71904 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -1166,21 +1166,12 @@ namespace CalamityMod.Items IsModifier = true }; - try - { - // Insert the tooltip after the last prefix line - // Goes to catch if index out of bounds, meaning it should just get tacked onto the end or there were no prefix tooltips - tooltips.Insert(tooltips.IndexOf(line) + 1, StealthDmg); - } - catch - { - // If price/expert line doesn't exist, just add it to the end - if (line2 == null) - tooltips.Add(StealthDmg); - // Otherwise, insert it right before the sell price (or expert line) - else - tooltips.Insert(tooltips.IndexOf(line2), StealthDmg); - } + // If price/expert line doesn't exist, just add it to the end + if (line2 == null) + tooltips.Add(StealthDmg); + // Otherwise, insert it right before the sell price (or expert line) + else + tooltips.Insert(tooltips.IndexOf(line2), StealthDmg); } } #endregion