Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-272355

Ellipsis text is stringified within NBT text formatter list truncation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.21 Pre-Release 1
    • 24w19a, 24w21b
    • None
    • Confirmed
    • Text
    • Important
    • Platform

      Text should not be shown as its string representation. However, when truncating NBT display text, the ellipsis is stringified.

      To reproduce, run /data get entity @s when you have a lot of recipes pending display in the recipe book.

      Code analysis (Yarn mappings)

      Refer to the NbtTextFormatter#visitList and NbtTextFormatter#visitCompound methods:

      // ELLIPSIS is a Text instance
      this.result.append("[" + ELLIPSIS + "]");
      

      The issue seems to have first appeared in Minecraft snapshot 24w19a, presumably from the fix for MC-270779.

            gegy1000 [Mojang] Gegy
            haykam haykam
            Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: