mojira.dev
MC-313198

Text wrapping in the crossbow tooltip does not respect indentation

The charged_projectiles component applies a tooltip description to the crossbow which lists the items stored in the component. The tooltip of those stored items are also displayed but indented by 8 (2 space characters).

In 26.3, this looks fine because the text does not wrap and looks identical to the normal arrow’s tooltip just shifted right.

As of 26.4-snapshot-7, the text can now wrap and the wrapped line is not indented, which interrupts the whole block being shifted right, and looks out of place.

Reproduction Steps:

  • Give yourself an arrow with long lore or any other component that applies a long enough tooltip.

    • e.g.

      /give @s arrow[lore=["This is some really long lore, sheesh"]]
  • Give yourself a crossbow (from the creative inventory).

  • Charge the arrow onto the crossbow.

  • Observe the tooltip of the crossbow.

Expected Behavior:

The tooltip of the arrow is uniformly indented by 8, even on wrapped lines.

Observed Behavior:

The wrapped line has no indentation.

Attachments

Comments 1

Thank you for helping us improve Minecraft! We saved your files:

[media][media]

DorkOrc

(Unassigned)

Unconfirmed

26.4 Snapshot 8

Retrieved