Switching to a hotbar slot with an item while pressing the drop key at the same time will cause the item to disappear. Switching from a hotbar slot will instead cause the item to drop, but also remain as a phantom item in your hotbar.
This appears to be a visual bug, not a duplication glitch, as updating your inventory GUI or interacting with the item's slot will fix the issue. That said, it does appear able to delete/duplicate items when performed in creative mode.
Steps to Reproduce:
Have an item in your hotbar
Switch to that item from a different hotbar slot with the number keys while pressing the drop key (q) at the same time.
Item disappears from hotbar without dropping. Update the slot or Inventory GUI to return it to inventory.
While the item is selected in your hotbar, switch to a different hotbar slot with the number keys while pressing the drop key (q) at the same time.
Item drops while remaining in hotbar. Update the slot or Inventory GUI to remove the phantom item.
Linked issues
Attachments
Comments 2
Seems to be the exact same issue as MC-154881, resolving as duplicate.
Duplicate of/related to MC-154881