mojira.dev
MC-198453

Scrolling hotbar slots while consuming a potion or food causes a desync and turns another potion or food into a ghost item

The Bug:

When scrolling between hotbar slots while drinking a potion, if the main item is another potion, it will turn into a ghost glass bottle that when picked up turns back into the potion.

Steps to Reproduce:

  1. Switch into survival mode and fill your hotbar with water bottles by using the command provided below.

    /give @s minecraft:potion{Potion:"minecraft:water"} 9
  2. Begin drinking a water bottle, and just as you're about to consume it, quickly switch to another hotbar slot.

  3. Repeat this process until a desync occurs and a ghost empty bottle item is created.

Linked issues

Attachments

Comments 5

In the future, before reporting, please check if you can reproduce this in an unmodded environment. Any use of modifications invalidates a report.

Can confirm in an unmodified environment

[media]

Can confirm in 1.16.5.

Can confirm in 1.19.3

Daniel Evola

(Unassigned)

Confirmed

Platform

Normal

Inventory, Items

desync

1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Pre-release 2, 1.16.4 Release Candidate 1, ..., 23w14a, 1.20.1, 1.20.4, 24w12a, 1.21.8

Retrieved