mojira.dev
MC-121630

Shift-Clicking Destroy Item button doesn't clear inventory

What I expected to happen

When you Shift-Click on the Destroy Item button in your inventory, Your inventory is cleared.

What happened

I shift-clicked on the Destroy Item button in 17w45a and my inventory was not cleared.

Steps to Reproduce

Get some items in your inventory in 17w45a and Shift-Click the Destroy Item button.
Your inventory will not be cleared

Notes

  • Placing an item in the Destroy Item slot does remove the item though.

  • Shift+Right-clicking works.

  • Shift+Left-clicking works if there is an item in the cursor (that item will not be removed, but everything else will be). (Shift+right-clicking continues to work in this case)

Linked issues

MC-121812 Shift Clicking Delete Button Doesn't Clear Inventory Resolved MC-121852 Shift + "Destroy Item" does not clear inventory Resolved MC-121881 Emptying Creative inventory by Shift-Clicking "destroy" doesn't work Resolved MC-121912 Shift-clicking destroy button does not clear inventory Resolved MC-121933 Inventory Resolved

Comments 9

Confirmed on Windows 7.

Note that shift-right-clicking does clear the player's inventory.

Confirmed for 17w45b.

Hardware: Windows 7, Java 1.8.0_185

Confirmed for 17w46a.

@unknown: it's already confirmed for 17w46a. Look at the Affects Version/s list.

Confirmed for 17w47a

Quick mod-note/analysis: this is definitely a bug. The way that shift-clicking works in this slot is that the slot deletes all items when a quickmove occurs. However, it seems that in the snapshot, shift-left-clicking an empty slot does not trigger a quickmove anymore (but shift-right-clicking does). Thus the clear inventory does not always happen.

Can confirm for 19w02a

Confirmed for 24w36a

in 24w36a, it seems like the inventory is cleared on the server side but not the client, relogging shows the correct empty inventory

Sam Hindess

Fry

Confirmed

inventory

Minecraft 17w45a, Minecraft 17w45b, Minecraft 17w46a, Minecraft 17w47a

Minecraft 17w47b

Retrieved