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
Equip any armor, armor points are displayed above the hotbar
Change dimensions through a portal
Armor points are no longer displayed above the hotbar
Update the GUI (Open inventory, take a screenshot)
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
is duplicated by 78
relates to 1
Attachments
Comments 39
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.
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.
Confirmed.