The duration of Lingering Potions are displayed incorrectly
lonefelidae16 opened this issue · 0 comments
Hi 👋
I noticed that the BedrockIfy tooltip feature was displaying the wrong duration for Lingering Potions. Upon examination, I found that a custom class PotionTooltip
is instantiated with this StatusEffectInstance
, and it doesn’t contain the duration multiplier.
Getting the multiplier is difficult and hard coded, so I think it is better to use the result of Item#appendTooltip
for the PotionItem
. And it works fine on my instance.
When I tried to fix, it had far-reaching implications, leading to a refactoring. Please take a look at the code in the new PR I’m about to create.