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
Ensure you are playing a singleplayer world which is not opened to LAN.
Run this command:
/setblock ~ ~ ~ repeating_command_block{auto:1b,Command:'tellraw @p {"block":"~ ~ ~","nbt":"LastExecution"}'}
Press escape to pause the game.
Take note of the most recent chat message.
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
is duplicated by 13
relates to 2
Attachments
Comments 36
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)
This issue still exists in Minecraft snapshot 24w07a. Note that the issue is easier to reproduce when increasing the tick rate.
Yay it's confirmed 😃