mojira.dev
MC-36696

Clicking on the statistics button on the menu screen advances the game by 1 tick

The bug

When you click on the statistics section in the pause menu in single player mode, the game advances by one tick.

To reproduce

  1. Ensure you are playing a singleplayer world which is not opened to LAN.

  2. Run this command:

    /setblock ~ ~ ~ repeating_command_block{auto:1b,Command:'tellraw @p {"block":"~ ~ ~","nbt":"LastExecution"}'}
  3. Press escape to pause the game.

  4. Take note of the most recent chat message.

  5. Click "Statistics" then "Done".
    → ❌ There may be one or two more messages in chat.

Code analysis

Code analysis by @unknown can be found in this comment.

Linked issues

MC-75472 Going into achievements or stats menu unpauses game for a short time Resolved MC-84175 Game briefly unpauses when clicking on menus. Resolved MC-86892 Game resumes a few ticks when opening achievements/statistics from the pause menu in singleplayer Resolved MC-91237 If you click on Achievements or Stats in the Pause-Menu, the game will continue a few frames Resolved MC-99851 Opening achievement menu moves the game forward one tick Resolved

Attachments

Comments 36

Yay it's confirmed 😃

Confirmed for 14w27b, also works with the statistics menu.

Reopened, thanks

Confirmed for 1.8.1 (MC-75472)

It doesn't seem to be always 1 tick though. It unpauses the game until the stat or achievement menu is done loading. It takes from 0 to 2 tick for me. (Tested with /time command)

26 more comments

Can confirm in 1.19 and 22w24a.

Can confirm in 1.19.2.

This issue still exists in Minecraft snapshot 24w07a. Note that the issue is easier to reproduce when increasing the tick rate.

flow_santohyj123

Can confirm in 1.21.4. This is even more noticable as the background was changed in 24w09a.

Confirmed in 13w38a/b/c, 13w39a, 1.16.1, 25w15a/16a. Not confirmed in 1.6.4 or older. This bug is also caused by achievements button, but not caused by advancements button.

Blub

lord.quadrato

(Unassigned)

Confirmed

Platform

Low

Statistics

Minecraft 1.7, Minecraft 1.7.1, Minecraft 1.7.2, Minecraft 14w27b, Minecraft 1.8, ..., 23w45a, 1.20.6, 24w19b, 1.21, 1.21.5

25w21a

Retrieved