BedrockIfy - Bedrock Features on Java!

BedrockIfy - Bedrock Features on Java!

462k Downloads

The duration of Lingering Potions are displayed incorrectly

lonefelidae16 opened this issue · 0 comments

commented

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.

2023-02-23_11 23 16

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.