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

TextComponent outputting garbage into books

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • None
    • It's been reported to me by dozens of users that use my plugin on dozens of different machines.

    • git-Spigot-ff439d1-24c79a1
    • EliteMobs
    • Yes

      Very recently TextComponent started outputting garbage into books. I heavily rely on a wide array of features of TextComponent to write books, and I was told an update recently did some major changes to these systems. It would seem that even after the most recent patch there are still some lingering issues.

       

      Code that I am using (snippet, full code is available on github if needed): https://hatebin.com/btspfqjafl

       

      To save you some time: line 137 for the TextComponent, line 89 and on for it getting inserted into the book, line 109 for how I'm setting hover text, line 201 for generating the book itself.

       

      Visual output:

       

      What it is supposed to look like (still working for all users that haven't updated spigot in the last few days) :

       

       

            Unassigned Unassigned
            MagmaGuy MagmaGuy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: