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

setLine() for signs bug

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • None
    • None
    • Windows 11

      AMD Ryzen 5 5600

      Radeon Graphics RX 5500

      Java17

    • 1.20
    • Yes

      When setting lines of sign, first line displays properly but the rest do not. Code snippet:

      e.setLine(0, ChatColor.AQUA + "[AdminShop]");
      e.setLine(1, ChatColor.LIGHT_PURPLE + e.getLine(1));
      e.setLine(2, ChatColor.GREEN + "$" + (e.getLine(2))); 
      e.setLine(3, ChatColor.WHITE + (e.getLine(3))); 

      The first line gets color and Displays as : [AdminShop]

      Second line displays with no color: SomeWord

      Third line diplays with no added text and no color: 4 should be $4

      Fourth line displays with no color: SomeOtherWord

      I rolled back to 1.19.4 and everything is fine. This issue is only happening in 1.20. Also tested it with 1.19.3 and it also works there.

      Further test was a fresh version of 1.20 with only my plugin installed, got same results.

            Unassigned Unassigned
            IrChaos IrChaos
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: