-
Bug
-
Resolution: Unresolved
-
None
-
Minecraft 1.12.1, Minecraft 1.12.2 Pre-Release 1, Minecraft 1.12.2 Pre-Release 2, Minecraft 1.12.2, Minecraft 17w49a, Minecraft 17w49b, Minecraft 17w50a, Minecraft 1.13.1, 1.15.1, 1.16.2, 1.16.4, 20w48a, 20w51a, 21w03a, 21w05b, 21w06a, 21w07a, 1.17, 1.17.1, 1.18.1, 1.18.2, 1.19, 1.19.2, 1.19.4, 23w18a, 1.21
-
Confirmed
-
UI
The bug
Unlike all other GUIs, you can open the advancements overview while traveling to the nether or back.
In singleplayer, the game is paused then while in multiplayer, the game continues to run, causing the advancements overview to be closed as soon as you've changed the dimension.
How to reproduce
- Enter a portal
- Press the "Advancements overview" key (default: L)
Code analysis
In class EntityPlayerSP, in function onLivingUpdate, it is defined that a screen's doesGuiPauseGame function must return false if it should not be able to be shown.
If that function is implemented into GuiScreenAdvancements like so:
public boolean doesGuiPauseGame() { return false; }
the overview can not be invoked while the player is inside of a portal. However, this also causes the overview to disappear when you open it from the pause menu while standing inside of a portal; and also the game does not stop while being in the advancements overview, which probably is not intended.
- relates to
-
MC-2071 Pausing the Game or opening any GUI in a nether portal does not work
- Resolved