-
Bug
-
Resolution: Fixed
-
Minecraft 1.4.3, Minecraft 1.4.5, Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w02a, Snapshot 13w02b, Minecraft 1.5, Snapshot 13w11a, Minecraft 1.5.1, Snapshot 13w16a, Minecraft 1.5.2, Snapshot 13w18b, Snapshot 13w18c, Minecraft 1.6.1, Minecraft 1.6.2, Minecraft 1.6.4, Minecraft 1.7.1, Minecraft 1.7.2, Minecraft 13w47c, Minecraft 1.7.4, Minecraft 14w02c, Minecraft 14w03a, Minecraft 14w03b, Minecraft 14w04b, Minecraft 14w05b, Minecraft 14w06a, Minecraft 14w06b, Minecraft 14w07a, Minecraft 14w08a, Minecraft 14w18b, Minecraft 14w20b, Minecraft 14w21b, Minecraft 1.7.10, Minecraft 14w30b, Minecraft 14w30c, Minecraft 14w31a, Minecraft 14w33c, Minecraft 14w34a, Minecraft 14w34b, Minecraft 14w34c, Minecraft 14w34d, Minecraft 1.8-pre1, Minecraft 1.8, Minecraft 1.8.1-pre3, Minecraft 1.8.1, Minecraft 1.8.8, Minecraft 15w36b, Minecraft 15w36c, Minecraft 15w36d, Minecraft 15w51b, Minecraft 16w03a, Minecraft 16w05b, Minecraft 16w06a, Minecraft 16w07a, Minecraft 16w07b, Minecraft 1.9 Pre-Release 2, Minecraft 1.9, Minecraft 1.9.1 Pre-Release 1, Minecraft 1.9.1 Pre-Release 2, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.1, Minecraft 1.9.2, Minecraft 16w14a, Minecraft 1.9.3 Pre-Release 3, Minecraft 1.9.4, Minecraft 16w20a, Minecraft 16w21a, Minecraft 16w21b, Minecraft 1.10 Pre-Release 1, Minecraft 1.10 Pre-Release 2, Minecraft 1.10, Minecraft 1.10.1, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, Minecraft 16w33a, Minecraft 16w35a, Minecraft 16w40a, Minecraft 1.11, Minecraft 1.11.2, Minecraft 17w17b, Minecraft 1.12, Minecraft 1.12.1 Pre-Release 1, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 17w43a, Minecraft 17w43b
-
Confirmed
The bug
When I use an anvil (repair & name) on "Book and Quill" after naming I can't write something in this book. I can sign it but it stay are not writed.
How to reproduce
- Get a new blank book and quill.
- Rename it.
- Try to type in it, it won't work.
Code analysis
Based on 1.11 decompiled using MCP 9.35 rc1
The constructor net.minecraft.client.gui.GuiScreenBook.GuiScreenBook(EntityPlayer, ItemStack, boolean) tests if the book has the tag tag and if this is the case tries to use its pages value. Because this tag does not exist an empty list is returned. The problem is that the test for bookTotalPages < 1 (= empty list) only sets the bookTotalPages attribute value to 1, but does not add an empty string to the pages. Because of this the player is unable to write something.
public GuiScreenBook(EntityPlayer player, ItemStack book, boolean isUnsigned) { this.editingPlayer = player; this.bookObj = book; this.bookIsUnsigned = isUnsigned; if (book.hasTagCompound()) { NBTTagCompound nbttagcompound = book.getTagCompound(); this.bookPages = nbttagcompound.getTagList("pages", 8).copy(); this.bookTotalPages = this.bookPages.tagCount(); if (this.bookTotalPages < 1) { // Added the following line this.bookPages.appendTag(new NBTTagString("")); this.bookTotalPages = 1; } } if (this.bookPages == null && isUnsigned) { this.bookPages = new NBTTagList(); this.bookPages.appendTag(new NBTTagString("")); this.bookTotalPages = 1; } }
- is duplicated by
-
MC-6864 Book and Quill requires update when renamed
- Resolved
-
MC-7114 11 January 2013
- Resolved
-
MC-12441 Unable to write in Book and Quill after being renamed in an Anvil.
- Resolved
-
MC-25551 Cannot type in renamed books
- Resolved
-
MC-26543 Can't write on Rename book
- Resolved
-
MC-26635 Cant write in book and quils.
- Resolved
-
MC-35490 Cannot type in Book and Quill that has a Custom name
- Resolved
-
MC-44781 Bug with renamed Book and Quils
- Resolved
-
MC-45113 can not write on renamed book and quill until changing the page
- Resolved
-
MC-47294 Using /give to get a custom named book cant be wrote in.
- Resolved
-
MC-48159 Unable to Write in ReNamed Book and Quil
- Resolved
-
MC-48993 Named book and quill makes you not able to write in it
- Resolved
-
MC-49520 After using /give command can't write in writable book
- Resolved
-
MC-54775 Renamed writable books can not be written in.
- Resolved
-
MC-55184 Named Book and Quill can not be edited
- Resolved
-
MC-55254 Renamed Book And Quills cant be typed in
- Resolved
-
MC-55557 Named Books Can't Be Edited
- Resolved
-
MC-56581 Cannot write in book when renamed with anvil
- Resolved
-
MC-62030 Not Being able to write in book and quill
- Resolved
-
MC-74060 Can't wright in renamed book
- Resolved
-
MC-75504 You can't write in a book and quill with NBT Tag or with custom name
- Resolved
-
MC-87670 Cant Write in book
- Resolved
-
MC-87671 Cant write in rename book
- Resolved
-
MC-95157 I can't write on book and quill once I rename this book.
- Resolved
-
MC-96292 Unable to edit book and quill after renaming it
- Resolved
-
MC-102008 Can't type in unsigned Book and Quills that have no NBT tag
- Resolved
-
MC-104669 Unable to type in a named book and quill.
- Resolved
-
MC-111742 Renamed Book and Quill won't take text
- Resolved
-
MC-113996 Book and Quill cannot be edited after changing the name in an anvil
- Resolved
-
MC-119616 New Book and Quill unable to be edited after renaming
- Resolved
-
MC-119870 Renaming a Book and Quill makes it not possible to write in the book
- Resolved
-
MC-1958 i cant write a book when i named it with a anvil
- Resolved
-
MC-2048 You cannon type in a renamed Book and Quill that you have renamed in the anvil.
- Resolved
- relates to
-
MC-84005 Book and quill doesn't save changes when edited in offhand
- Resolved