Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-120513

The advancements overview can be opened while being in a nether portal

XMLWordPrintable

    • Icon: Bug 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
    • 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

      1. Enter a portal
      2. 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:

      GuiScreenAdvancements.java
      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.

        1. MC-120513.mp4
          4.46 MB
        2. MC-120513.png
          MC-120513.png
          298 kB

            Unassigned Unassigned
            violine1101 [Mod] violine1101
            Votes:
            11 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              CHK: