mojira.dev
MC-88179

Armor bar disappears after changing dimension until GUI update

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 @unknown can be found in this comment.

A fix in Forge for 1.12 can be found here.

Linked issues

MC-10838 Texture Glitch With Squids. Resolved MC-88690 Armor Bar dissapears when switching dimensions Resolved MC-89720 Armor HUD Resets Upon Switching Dimension Resolved MC-91223 Sprites armor disappear when entering the portal Resolved MC-91471 No armor status hud bar Resolved

Attachments

Comments 39

Confirmed.

Cristian Serna

Confirmed in 15w45a

I have to take the armor off, then back on, to update it :/

Confirmed for 16w05a

Confirmed for 16w05b

29 more comments

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.

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.

Michael Brocaglia

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. 

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

@unknown, 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.

SteveKunG

migrated

Confirmed

UI

armor, end, nether

Minecraft 15w36d, Minecraft 15w37a, Minecraft 15w40b, Minecraft 15w41b, Minecraft 15w43c, ..., 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

19w35a

Retrieved