mojira.dev
MC-115060

Crash when recipe book attempts to return items to full inventory

Steps to reproduce:

1. Enter crafting table GUI or survival inventory, place some items on crafting grid
2. Completely fill up your inventory while still in the GUI (for survival, be standing on dropped items)
3. Open recipe book, click on a recipe

Under normal circumstances, this would automatically clear the crafting grid to display the recipe you clicked on by returning items to your inventory. If there is nowhere for these items to go, the game will crash.

I would expect the items to be dropped, like when you close the GUI with a full inventory.

The following error is given. Crash log attached below.

GAME CRASH
The game crashed whilst updating screen events
Error: java.lang.ArrayIndexOutOfBoundsException: -1

Linked issues

Attachments

Comments 2

SirBenet

Still occurs in 17w13b. The bug that this one is marked as a duplicate of has been fixed (it was caused in a different scenario by a different line of code), so requesting this one to be reopened, as it is not fixed.

Littleman9Mew2

Can confirm. Had inventory filled with 27 stacks of wooden planks with a 28th stack on the ground. Went to craft a boat, and when I clicked on a different recipe without crafting the boat, the game crashed.

SirBenet

(Unassigned)

Unconfirmed

Minecraft 17w13a, Minecraft 17w13b

Retrieved