mojira.dev
MC-206644

When right clicking and dragging bundles in the inventory, the item is deposited unexpectedly

The item is deposited when the mouse button is released, rather than first pressed, and is also deposited at the point where the click happened rather than where it ended.

The preferred behaviour would be to have it be deposited where it was first clicked, like with item stacks normally, but when the button is first pressed. Dragging should either do nothing, or continuously empty the bundle's contents into each highlighted inventory slot.

To reproduce:

  1. Have a bundle with one or more items inside

  2. Click this bundle to pick it up

  3. Hold down right click and drag it across several inventory slots

  4. Notice that when releasing right click, an item is dropped off where you first clicked

  5. Compare this behaviour to a stack of stackable items and note the inconsistency

Linked issues

Attachments

Comments 15

Yes, since you can right-click a bundle to deposit an item.

Please update and clarify the bug report with:

  1. Repro steps

  2. The behaviour that happens

  3. The expected behaviour

Summary: When putting an item into a bundle, it will be put into it when releasing mouse button, even though when removing them from a bundle, it will already happen when you start holding down the right mouse button. This is inconsistent.

Repro steps:

  1. Get a bundle and one other item

  2. Put the item into the bundle, but hold down right click for longer, than you would usually do
    The behaviour that happens: The item will be put into the bundle when you release the mouse button.
    The expected behaviour: The item will already be put into the bundle when you start holding down right click, since taking the item out of a bundle already takes it out when you start holding down right click.

That's a different bug?

5 more comments

Can confirm in 1.18.2.

Can confirm in 1.19.

Can confirm in 1.19.2.

Confirmed in 1.21.2 pre1, the behavior has changed a bit since the start of 1.21.2 snapshots and I think the description could get confusing.

Right now the bundle deposits items by left clicking, but it will only deposit the item on button release rather than first press. The expected here would be to deposit it on first press (as it was originally mentioned in the report).

Same thing happens when releasing items in the inventory by right clicking, where the expected would be to release an item on button first press, like the above.

Lastly, when right clicking and dragging a bundle full of items, only the first item will be released in the inventory at the incorrect slot, rather than releasing the item stacks consecutively (which I believe should be the expected, so it is consistent with item stacks). You could also argue that despositing multiple item stacks into the bundle by dragging left click should work as well, but that wasn't originally mentioned in the report.

muzikbike

(Unassigned)

Confirmed

Gameplay

Low

UI

bundle

20w48a, 20w49a, 20w51a, 21w17a, 21w18a, ..., 1.20, 1.20.1, 1.20.4, 24w36a, 1.21.2 Pre-Release 1

Retrieved