mojira.dev
MC-193538

Certain actions aren't canceled after opening game mode switcher

The bug

The follow actions aren't cancelled after the gamemode switcher is opened:

  • Blocking with a shield

  • Preparing to shoot with a bow/crossbow

  • Prepearing to throw a trident

  • Eating/drinking food item

  • Using a spyglass
    (List may be incomplete)

You can let go of the right-click button on their mouse, causing the player to stay in that current action unless a gamemode has been chosen.

To reproduce

  1. Have a shield and hold right-click

  2. Do F3 + F4, do not pick a gamemode yet
    → ❌ Your player is stuck in that action, and you can let go of the right-click button and observer that you are still blocking

    VIDEO

[media]

Linked issues

Attachments

Comments 12

I can confirm in 20w46a.

Can confirm in 21w03a.

Can confirm in 21w07a.

Can confirm in 21w15a.

2 more comments

Can confirm in 1.17.1.

Can confirm in 1.18.1.

Can confirm in 1.18.2 and 22w11a.

Can confirm in 1.19.

Can confirm in 1.19.2.

DrownedZombie

(Unassigned)

Confirmed

Player, UI

1.16.1, 20w28a, 20w29a, 1.16.2 Pre-release 1, 1.16.2 Pre-release 2, ..., 1.20 Pre-release 1, 1.20 Release Candidate 1, 1.20, 1.20.1, 1.21 Pre-Release 4

Retrieved