Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-7483

.setText method puts text into "extra" nbt

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • None
    • None
    • Windows OS, Pro

    • 1.20.1-R0.1-SNAPSHOT
    • Yes

      When using the .setText(String text) method for a TextDisplay, it puts the string given into a format that does not change the text of the TextDisplay. The 'text' nbt looks like this after the setText method has been used like textDisplay.setText("This is a test");

       

      text:'{"extra":[{"text":"This is a test"}],"text":""}'

       

      This is not correct, as it should put the text like so:

      text:'{"text":"This is a test"}'

            Unassigned Unassigned
            ExpandedReality Benjamin Simpson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: