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).
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:
generationThis is just the tag of the bookstartCountthe count the books you wanted to copy havecopyCountthe count ofwriteable_books you put in the crafting gridWhen you try to copy now more than one book you will get
copyCountbooks withgeneration+1 in your cursorstartCount-1 books withgenerationin your inventory (or dropped if your inventory is full)0 books (just book with count 0) with
generationleft in crafting grid