mojira.dev
MC-220842

Opening game mode switcher while spectating a mob with shader effect toggles the effect

The Bug:

Discovered while testing MC-46503. (Original reporter).

When you press F4 while spectating a mob with a shader effect it will toggle the shader effect on and off. But because the game mode switcher is opened using F3 + F4 you will also toggle that effect by opening the menu. This is inconsistent with other F3 shortcuts. For example F3+ D or F3 + A do not perform the action done by pressing these buttons, so you do not move, but this is not the case for F4.

Steps to Reproduce:

  1. Spawn a Creeper, Enderman, Spider or Cave Spider.

  2. Put yourself into spectator mode and spectate the mob by left clicking it.

  3. Open the game mode switcher by pressing F3+ F4.
    ❌ The shader effect is toggled.

(You can move the selector to spectator mode before closing the menu to prevent you from stopping spectating the entity).

Linked issues

Attachments

Comments

Avoma

Can confirm in 21w13a.

Avoma

Can confirm in 1.17.

hentor5

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

hentor5

(Unassigned)

Confirmed

(Unassigned)

1.16.5, 21w11a, 21w13a, 21w14a, 21w15a, ..., 23w44a, 1.20.3, 1.20.4, 1.21.1, 24w40a

Retrieved