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

Chat hover & click events are offset if "Line Spacing" chat setting is used

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 22w45a
    • 1.19.2
    • Confirmed
    • Accessibility, UI
    • Normal

      Chat hover & click events are offset in Minecraft Java Edition 1.19.2 if "Line Spacing" chat setting is used.

      How to reproduce:

      1. Go to chat settings and set "Line Spacing" setting to 10%.
      2. Go to single player or multiplayer world.
      3. Use this command in command block: tellraw @p {"extra":[{"clickEvent": {"action":"run_command","value":"/title @s title 1"}

        ,"hoverEvent":{"action":"show_text","contents":{"text":"This is line 1"}},"text":"#1 Line 1"},{"text":"\n"},{"clickEvent":

        {"action":"run_command","value":"/title @s title 2"}

        ,"hoverEvent":{"action":"show_text","contents":{"text":"This is line 2"}},"text":"#2 Line 2"},{"text":"\n"},{"clickEvent":

        {"action":"run_command","value":"/title @s title 3"}

        ,"hoverEvent":{"action":"show_text","contents":{"text":"This is line 3"}},"text":"#3 Line 3"},{"text":"\n"},{"clickEvent":

        {"action":"run_command","value":"/title @s title 4"}

        ,"hoverEvent":{"action":"show_text","contents":{"text":"This is line 4"}},"text":"#4 Line 4"},{"text":"\n"},{"clickEvent":

        {"action":"run_command","value":"/title @s title 5"}

        ,"hoverEvent":{"action":"show_text","contents":{"text":"This is line 5"}},"text":"#5 Line 5"},{"text":"\n"},{"clickEvent":

        {"action":"run_command","value":"/title @s title 6"}

        ,"hoverEvent":{"action":"show_text","contents":{"text":"This is line 6"}},"text":"#6 Line 6"},{"text":"\n"},{"clickEvent":

        {"action":"run_command","value":"/title @s title 7"}

        ,"hoverEvent":{"action":"show_text","contents":{"text":"This is line 7"}},"text":"#7 Line 7"},{"text":"\n"},{"clickEvent":

        {"action":"run_command","value":"/title @s title 8"}

        ,"hoverEvent":{"action":"show_text","contents":{"text":"This is line 8"}},"text":"#8 Line 8"},{"text":"\n"},{"clickEvent":

        {"action":"run_command","value":"/title @s title 9"}

        ,"hoverEvent":{"action":"show_text","contents":{"text":"This is line 9"}},"text":"#9 Line 9"},{"text":"\n"},{"clickEvent":

        {"action":"run_command","value":"/title @s title 10"}

        ,"hoverEvent":{"action":"show_text","contents":{"text":"This is line 10"}},"text":"#10 Line 10"},{"text":"\n"}],"text":""}

      4. Try to hover & click messages that contain "Line" in chat.
      5. Done

       

            gegy1000 [Mojang] Gegy
            Munaville Ville
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: