mojira.dev
MC-199643

Pressing F while hovering over an item in a UI of a container in spectator mode creates a ghost item

The bug

If you look into a container, which is a chest, ender chest, trap chest or shulker box, in spectator mode and hover over an item with your mouse and then press F, you will have a ghost item in your offhand when you go back into another gamemode. This item can’t be removed from the offhand using F. If you click on the item in creative mode, it will become a normal item, if you click on it in survival, it will disappear.

How to reproduce:

  1. Place a chest

  2. Take any block

  3. Go into spectator mode

  4. Look into the chest

  5. Hover over an item in your inventory

  6. Press F

  7. Go back into creative mode
    ❌ You will have a ghost item in your offhand, if you place the block, it will instantly vanish.

Related issues

Attachments

Comments

migrated
[media][media]
anthony cicinelli

I can confirm for 1.16.2

bemoty

Confirmed for 1.16.3 RC1

user-aa418

Can confirm in 1.17.1.

hentor5

Can confirm 23w43b. I would like to request ownership of this issue to maintain it.

bugsbugsbugs

hentor5

(Unassigned)

Confirmed

Inventory, Player

1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, ..., 23w43b, 23w44a, 1.20.3, 1.20.4, 24w12a

Retrieved