mojira.dev
MC-75734

Zero-count stack after copying Written Book from a stack

When I craft 2 or more copies of an original Written Book, then put them into the crafting grid while still stacked and make a second-generation copy, one of the first-generation copies becomes a stack of zero. Also, I end up with one fewer first-generation copies than I had before if the zero stack is indeed counted as zero (because when I start with 2 on the crafting grid, only 1 goes back into my inventory).

Linked issues

Attachments

Comments 1

Confirmed for

  • 1.8.2-pre1

  • 1.8.7 As soon as you try to copy more than one book this happens

What happens:
Lets say you have these variables:

  • generation This is just the tag of the book

  • startCount the count the books you wanted to copy have

  • copyCount the count of writeable_book s you put in the crafting grid

When you try to copy now more than one book you will get

  • copyCount books with generation +1 in your cursor

  • startCount -1 books with generation in your inventory (or dropped if your inventory is full)

  • 0 books (just book with count 0) with generation left in crafting grid

Chris

(Unassigned)

Community Consensus

Minecraft 1.8.2-pre1, Minecraft 1.8.7

Retrieved