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

Armor bar disappears after changing dimension until GUI update

    • Icon: Bug Bug
    • Resolution: Fixed
    • 19w35a
    • Minecraft 15w36d, (119)
      Minecraft 15w37a, Minecraft 15w40b, Minecraft 15w41b, Minecraft 15w43c, Minecraft 15w44a, Minecraft 15w44b, Minecraft 15w45a, Minecraft 15w46a, Minecraft 15w47a, Minecraft 15w47b, Minecraft 15w47c, Minecraft 15w50a, Minecraft 15w51b, Minecraft 16w03a, Minecraft 16w04a, Minecraft 16w05a, Minecraft 16w05b, Minecraft 16w06a, Minecraft 16w07a, Minecraft 16w07b, Minecraft 1.9 Pre-Release 1, Minecraft 1.9 Pre-Release 2, Minecraft 1.9 Pre-Release 3, Minecraft 1.9 Pre-Release 4, Minecraft 1.9, Minecraft 1.9.1 Pre-Release 1, Minecraft 1.9.1 Pre-Release 2, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.1, Minecraft 1.9.2, Minecraft 16w14a, Minecraft 16w15a, Minecraft 16w15b, Minecraft 1.9.3 Pre-Release 1, Minecraft 1.9.3 Pre-Release 2, Minecraft 1.9.3 Pre-Release 3, Minecraft 1.9.4, Minecraft 16w20a, Minecraft 16w21a, Minecraft 16w21b, Minecraft 1.10 Pre-Release 1, Minecraft 1.10 Pre-Release 2, Minecraft 1.10, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, Minecraft 16w33a, Minecraft 16w35a, Minecraft 16w36a, Minecraft 16w38a, Minecraft 16w39a, Minecraft 16w39b, Minecraft 16w39c, Minecraft 16w40a, Minecraft 16w41a, Minecraft 16w42a, Minecraft 16w43a, Minecraft 16w44a, Minecraft 1.11 Pre-Release 1, Minecraft 1.11, Minecraft 16w50a, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w13a, Minecraft 17w13b, Minecraft 17w14a, Minecraft 17w15a, Minecraft 17w16b, Minecraft 1.12 Pre-Release 3, Minecraft 1.12 Pre-Release 6, Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 17w49a, Minecraft 17w50a, Minecraft 18w02a, Minecraft 18w05a, Minecraft 18w11a, Minecraft 18w14b, Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13-pre8, Minecraft 1.13-pre9, Minecraft 1.13, Minecraft 18w30a, Minecraft 18w30b, Minecraft 18w31a, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w43b, Minecraft 18w44a, Minecraft 18w47a, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w02a, Minecraft 19w03a, Minecraft 19w03c, Minecraft 19w04b, Minecraft 19w06a, Minecraft 19w11a, Minecraft 19w14b, Minecraft 1.14 Pre-Release 2, Minecraft 1.14 Pre-Release 3, Minecraft 1.14 Pre-Release 4, Minecraft 1.14, Minecraft 1.14.1 Pre-Release 1, Minecraft 1.14.1 Pre-Release 2, Minecraft 1.14.1, Minecraft 1.14.2 Pre-Release 1, Minecraft 1.14.2 Pre-Release 2, Minecraft 1.14.2 Pre-Release 3, Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 2, Minecraft 1.14.3 Pre-Release 3, Minecraft 1.14.4 Pre-Release 6, 1.14.4, 19w34a
    • Confirmed
    • UI

      The bug

      When going into or out of the nether or end, the armor bar disappears and only reappears when it gets an update, for example by removing a piece of the armor.

      How to reproduce

      1. Equip any armor, armor points are displayed above the hotbar
      2. Change dimensions through a portal
      3. Armor points are no longer displayed above the hotbar
      4. Update the GUI (Open inventory, take a screenshot)
      5. Armor points are again displayed above the hotbar

      Code analysis

      Code analysis by marcono1234 can be found in this comment.

      A fix in Forge for 1.12 can be found here.

        1. 2015-09-06_11.44.01.png
          2015-09-06_11.44.01.png
          297 kB
        2. 2015-09-06_11.44.23.png
          2015-09-06_11.44.23.png
          992 kB
        3. 2015-09-06_11.44.33.png
          2015-09-06_11.44.33.png
          991 kB
        4. 2558-09-06_13.37.50.png
          2558-09-06_13.37.50.png
          145 kB
        5. 2558-09-06_13.37.57.png
          2558-09-06_13.37.57.png
          336 kB

          [MC-88179] Armor bar disappears after changing dimension until GUI update

          [Mod] violine1101 added a comment - - edited

          Steve_MCCommander, please don't re-add unnecessary information into the environment field; this issue has been reproduced in multiple different environments and therefore doesn't need to be mentioned.

          [Mod] violine1101 added a comment - - edited Steve_MCCommander , please don't re-add unnecessary information into the environment field; this issue has been reproduced in multiple different environments and therefore doesn't need to be mentioned.

          Armor points, effects, etc. all still apply, the gui just doesn't show that

          user-f2760 (Inactive) added a comment - Armor points, effects, etc. all still apply, the gui just doesn't show that

          This is still happening to me in vanilla 1.13.2. Anyone figured out if you're still protected from damage? I'm worried that I'll walk out into the Nether and get blown to bits. My elytra still works, however. 

          Michael Brocaglia added a comment - This is still happening to me in vanilla 1.13.2. Anyone figured out if you're still protected from damage? I'm worried that I'll walk out into the Nether and get blown to bits. My elytra still works, however. 

          Another alternative (probably the best possibility) would of course be to have an argument for respawn packets if it's a dimension change or a death.

          Fabian Röling added a comment - Another alternative (probably the best possibility) would of course be to have an argument for respawn packets if it's a dimension change or a death.

          williewillus added a comment -

          hey guys
          this is just a note that the original forge fix I made that was posted above is buggy, and I have made a more correct fix here: https://github.com/MinecraftForge/MinecraftForge/pull/4830.

          Marcono's comment is correct but is not the best way to fix the issue, because the client player should lose all of its attributes when it's recreated due to a death. But the client doesn't know whether a given respawn packet is due to a teleportation or death.

          The optimal fix is to resend all attribute modifiers after a non-death dimension change, which is what the new forge fix I've linked does.

          williewillus added a comment - hey guys this is just a note that the original forge fix I made that was posted above is buggy, and I have made a more correct fix here: https://github.com/MinecraftForge/MinecraftForge/pull/4830 . Marcono's comment is correct but is not the best way to fix the issue, because the client player should lose all of its attributes when it's recreated due to a death. But the client doesn't know whether a given respawn packet is due to a teleportation or death. The optimal fix is to resend all attribute modifiers after a non-death dimension change, which is what the new forge fix I've linked does.

          Still occurs in 18w02a

          Brian McNamara added a comment - Still occurs in 18w02a

          [Mod] bemoty added a comment -

          Can confirm for MC 1.12.1.

          [Mod] bemoty added a comment - Can confirm for MC 1.12.1.

          mezz added a comment -

          This has been recently fixed in Forge for 1.12. The code might be useful for analysis of this bug.
          https://github.com/MinecraftForge/MinecraftForge/commit/32e811bd7a72efc59dd05c89775e62de908070ce

          mezz added a comment - This has been recently fixed in Forge for 1.12. The code might be useful for analysis of this bug. https://github.com/MinecraftForge/MinecraftForge/commit/32e811bd7a72efc59dd05c89775e62de908070ce

          Probably MC-90035.

          Fabian Röling added a comment - Probably MC-90035 .

          kuemmi added a comment -

          Could this be related to a problem with deploying the elytra in the end? I just tried to fly unsuccessfully with elytra and armor equipped, and after a bit, I noticed that the armor bar wasn't displayed.

          kuemmi added a comment - Could this be related to a problem with deploying the elytra in the end? I just tried to fly unsuccessfully with elytra and armor equipped, and after a bit, I noticed that the armor bar wasn't displayed.

            Excited Maria Lemón
            Steve_MCCommander SteveKunG
            Votes:
            76 Vote for this issue
            Watchers:
            29 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: