Fix potion text not respecting roman numerals setting

This commit is contained in:
Ismael Magro
2025-10-22 20:07:01 +02:00
parent e9ad9788c8
commit fedd4d5357
@@ -104,8 +104,10 @@ public class HudRenderer {
int amplifier = effect.getAmplifier();
potionText = effect.getEffect().value().getDisplayName().copy();
if (amplifier > 0)
potionText.append(" " + RomanNumerals.toRoman(amplifier));
if (amplifier > 0) {
String amplifierNumeral = BookshelfInspectorClient.config.useRoman ? RomanNumerals.toRoman(amplifier) : String.valueOf(amplifier);
potionText.append(" " + amplifierNumeral);
}
potionText.append(" (" + MobEffectUtil.formatDuration(effect, 1, 20).getString() + ")");
if (!effect.getEffect().value().isBeneficial()) {