mojira.dev
MC-188485

Inventory can get desynced when shift-clicking the Destroy Item slot

To Reproduce:

[media]
  1. Empty your inventory.

  2. Put some item in the first slot of your hotbar.

  3. Execute this command:

    /data get entity @s Inventory
    • ✔ Your inventory has a sword on server-side

  4. Clear your inventory by shift-clicking the Destroy Item slot.

  5. Quickly put the same item back by hovering your cursor on that item and then pressing 1.

  6. Execute this command.

    /data get entity @s Inventory
    • ❌ Your inventory is empty on server-side.

Linked issues

Attachments

Comments 14

Can confirm in 21w13a.

Can confirm in 21w14a.

Can confirm in 21w16a

Can confirm in 21w17a.

Can confirm in 21w18a.

4 more comments

Can confirm in 1.17 Pre-release 3.

Can confirm in 1.17 and 1.17.1 Pre-release 1.

Giving ownership of this ticket to @unknown.

@SPGoding Thank you!😃

Fixed in 24w33a.

[Mod] SPGoding

SoloAlguien

(Unassigned)

Community Consensus

Inventory, Networking

ghost-item, inventory-desync

1.15.2, 1.16 Pre-release 3, 1.16 Pre-release 5, 1.16 Pre-release 6, 1.16.2 Release Candidate 1, ..., 23w33a, 1.20.2, 1.20.4, 24w12a, 1.21.1

24w33a

Retrieved