mojira.dev
MC-120622

Item loss with shift + click to fill up with picked up items

The bug

Clicking on a recipe, which just moved items to the crafting grid, after you picked up items being ingredients of the recipe deletes them.

Additionally you cannot shift click on the recipe if there is no free space in your inventory, even though this space is not required.

How to reproduce

  1. Clear your inventory

    /clear
  2. Fill up your whole inventory except two slots with wooden swords

    /give @s wooden_sword 34
  3. Give yourself three stacks of oak planks, one of them should be dropped

    /give @s oak_planks 192
  4. Open the recipe book

  5. Shift click on the crafting table recipe

  6. After the third stack of planks was picked up: Shift click on the recipe again
    → The recipe is incorrectly placed and you lost a stack of planks

Related issues

Attachments

Comments

migrated
[media][media][media][media]
migrated

Can reproduce:
https://gfycat.com/FilthyCautiousHypsilophodon

In the gif, note that I cannot pick up any more reeds before i click the paper recipe for the first time; I can pick up more reeds before clicking the recipe the second time. I was not able to reproduce this if my character was completely filled with reeds.

violine1101

In 1.12, it just throws the dropped item(s) out of the inventory instead of deleting it/them.

migrated

"In 1.12, it just throws the dropped item(s) out of the inventory instead of deleting it/them."

For uncrafting blocks into their components this is true.
In the above issue though, components are crafted into blocks and when doing this in the described way, items are deleted.

pokechu22

The comment was a bit unclear, but it's referring to 1.12.0. 1.12.1 did some internal changes for the recipe book relating to duping+the packets used by it, which is probably what lead to this.

migrated

migrated

Confirmed

inventory, item

Minecraft 1.12.1, Minecraft 1.12.2 Pre-Release 2, Minecraft 1.12.2, Minecraft 17w43a, Minecraft 17w43b, ..., Minecraft 17w46a, Minecraft 17w48a, Minecraft 17w50a, Minecraft 18w01a, Minecraft 18w03b

Minecraft 18w08b

Retrieved