Skip to content

Commit

Permalink
chore: don't show ration if 1:1
Browse files Browse the repository at this point in the history
  • Loading branch information
SettingDust committed Nov 18, 2024
1 parent b80827b commit 62f21ae
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ data class ItemConvertScreen(
OnTooltip { button, pose, mouseX, mouseY ->
val itemButton = button as ItemButton
renderTooltip(pose, buildList {
add(Component.literal("${ratio.denominator}:${ratio.numerator}"))
if (ratio == Fraction.ONE)
add(Component.literal("${ratio.denominator}:${ratio.numerator}"))
addAll(getTooltipFromItem(itemButton.item))
if (Minecraft.getInstance().options.advancedItemTooltips) {
add(Component.literal("Path:"))
Expand Down

0 comments on commit 62f21ae

Please sign in to comment.