Fix the coffee effect displaying wrong due to setting the ticksPerSecond to 20 instead of 1

This commit is contained in:
Mrbysco 2024-03-09 17:49:20 +01:00
parent 56402e46eb
commit d4cc7b0737

View file

@ -105,7 +105,7 @@ public class ItemCoffee extends ItemBase {
if (effects != null) {
for (MobEffectInstance effect : effects) {
tooltip.add(Component.translatable(effect.getDescriptionId())
.append(" " + (effect.getAmplifier() + 1) + ", " + StringUtil.formatTickDuration(effect.getDuration(), 20))
.append(" " + (effect.getAmplifier() + 1) + ", " + StringUtil.formatTickDuration(effect.getDuration(), 1))
.withStyle(ChatFormatting.GRAY));
}
} else {