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

Hover/click events in books are vertically misaligned by about a third of a row of text

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 19w03a
    • Minecraft 18w47a, Minecraft 18w48a
    • None
    • Windows 10, Minecraft Java Edition, running Java 10.0.2
    • Confirmed

      The bug

      As of 18w43a, the first 1.14 snapshot, the "hitbox" for the cursor is incorrectly aligned for book click/hover events, meaning you can sometimes click the line above accidentally instead of what your cursor was hovering over.

      How to reproduce

      /give @p minecraft:written_book{pages:["{\"text\":\"Link to PAGE 2\",\"color\":\"blue\",\"clickEvent\":{\"action\":\"change_page\",\"value\":\"2\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":{\"text\":\"Hover text\"}}}]","[\"\",{\"text\":\"This is PAGE 2\"}]"],title:"Test Book",author:"?"} 

       Hover your mouse over the top half of the line.

      Here is a video demonstration: https://youtu.be/0GVYpVo99Jk

            boq [Mojang] Bartosz Bok
            TheRedstoneBlaze Ethan Maness
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: