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

Maximum length of book title changed from 16 to 15 characters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.16.4, 20w51a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w07a, 21w14a, 1.17, 1.17.1, 21w39a, 1.18 Pre-release 1, 1.18, 1.18.1, 22w06a, 1.19.2, 1.19.3 Pre-release 2, 1.19.4, 1.20 Pre-release 1, 1.20.2, 1.20.4
    • None
    • Confirmed
    • UI

      The bug

      When signing a book and quill it only allows you to enter 15 characters. It has always been 16 in the past.

      How to reproduce

      1. Take a book and quill item
        /give @s minecraft:writable_book
        
      2. Try to sign it with a title of exactly 16 characters
      3. Notice that it only allows 15 characters

      Code analysis

      The issue is that the field titleEdit in net.minecraft.client.gui.screens.inventory.BookEditScreen checks if the length is < 16. Replacing this with <= 16 fixes the issue.

        1. 1.7.10.png
          1.7.10.png
          332 kB
        2. 20w16a.png
          20w16a.png
          174 kB
        3. 20w17a.png
          20w17a.png
          259 kB
        4. image-2021-01-02-20-15-58-333.png
          image-2021-01-02-20-15-58-333.png
          8 kB
        5. MC-210318.mp4
          5.52 MB

            Unassigned Unassigned
            Misoloo [Helper] Misode
            Votes:
            15 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              CHK: