mojira.dev
MC-240720

Dropping an item while simultaneously swapping it into your offhand or another hotbar slot creates a ghost item

The Bug:

Desyncs can occur when dropping items and switching them into your offhand or another hobar slot simultaneously.

Steps to Reproduce:

  1. Obtain a stack of dirt and hold it in your main hand.

  2. Press the "Drop Selected Item" key at the same time as the "Swap Item With Offhand" key.
    The item is dropped, but the original item stack remains in your hotbar.

  3. Attempt to move or use the original item stack.
    The items that you dropped are depleted from said stack.

Linked issues

MC-272280 Offhand Bug Resolved MC-264632 dropping items while tapping the swap offhand item while having a non stackable item on one hand creates a visual bug Resolved MC-263684 Creation of Ghost Items by dropping and switching slots Resolved MC-262929 Holding f to swap items and pressing q in timing will create shadow copy of an item. Resolved MC-258591 F and q At the same time Resolved

Attachments

Comments 4

I'm not too sure but this ticket may duplicate or relate to MC-154881.

I can confirm this in 1.20.6 and 24w19b. Also related to MC-199643

Can confirm in 1.21.4.

Can confirm in version 1.21.6

Avoma

(Unassigned)

Confirmed

Platform

Important

Inventory, Networking

desync

1.17.1, 21w44a, 1.18 Pre-release 1, 1.18 Pre-release 5, 1.18.1, ..., 1.21.3, 24w45a, 1.21.4, 1.21.5, 1.21.8

Retrieved