mojira.dev
MC-298466

When clicking the "yes" button to confirm command execution in a dialog, if the player is put into another dialog, the click sound from the "yes" button will not be played until it is closed

The bug

You will understand better by watching the attached video.

Steps to reproduce

  1. Join a world with commands enabled.

  2. Run the dialog show command to display the following minimal setup dialog:

    {
      "type": "minecraft:notice",
      "title": "",
      "action": {
        "label": "",
        "action": {
          "type": "run_command",
          "command": "dialog show @s {\"type\": \"minecraft:notice\", \"title\": \"\"}"
        }
      }
    }
  3. Click on the button at the bottom of the screen. A confirmation screen will open.

  4. Click on the "Yes" button.
    → ❌ The game will step forward by one tick and will not play the click sound.

  5. Click on the "Ok" button at the bottom of the screen or press the Esc key to close it.
    → ❌ The click sound will be played twice or, if closed through the Esc key, will be played once despite not having clicked a button.

Observed behavior

When you click on the "Yes" button in the confirmation screen, the click sound will not be played. When you then click on the "Ok" button in the second dialog, the click sound will be played twice or once if you use the Esc key to exit the dialog.

Expected behavior

When you click on the "Yes" button in the confirmation screen, you would hear the click sound. When you then click on the "Ok" button in the second dialog, you would hear the click sound only once or not at all if you use the Esc key to exit the dialog.

Environment

Windows 10

Attachments

Comments 1

Can confirm, updated the title. This does not happen when running a command that does not put the player into another dialog.

Loupieur

boq

Confirmed

Platform

Normal

Sound, UI

1.21.6 Pre-Release 1

1.21.6 Pre-Release 3

Retrieved