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.
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 thisStatusEffectInstance
, 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 thePotionItem
. 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.