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

Details

    • 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
    • None
    • Confirmed
    • UI

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Misoloo [Helper] Misode
              Votes:
              11 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                CHK: