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

Calculate name plate length based on username stripped of color codes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.4.1
    • Fix Version/s: Minecraft 1.4.3
    • Labels:
      None
    • Environment:
      All operating systems + java versions are affected.
    • Confirmation Status:
      Unconfirmed

      Description

      Note: This may well be fixed in 1.4, but it's impossible for me to check due to the lack of a Bukkit build.

      Currently, adding colour codes to a user's name plate causes the length calculation for the blackbox under the text to be inaccurate, leaving a gap at the end as shown in the screenshot that is attached.

      To fix this, the nameplate length needs to be calculated after using a version of the username stripped of all characters. This would allow colouring nameplates without this visual glitch, at least until the API is ready.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                grum [Mojang] Grum (Erik Broes)
                Reporter:
                lol768 lol768
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: