mojira.dev
MC-313352

Absorption hearts overlap the armor bar when an odd maximum health and odd absorption add up to a full row

The Bug:

Absorption hearts overlap the armor bar when an odd maximum health and odd absorption add up to a full row.

When a second row of hearts is shown, the armor bar is moved up above it. However, when an odd maximum health and an odd amount of absorption add up to exactly one row of hearts, the last absorption heart is drawn on a second row while the armor bar stays in place, therefore introducing an inconsistency.

Steps to Reproduce:

  1. Switch to survival mode and wear an iron chestplate.

  2. Set your maximum health to 19 by using the command provided below.

    /attribute @s minecraft:max_health base set 19
  3. Give yourself the absorption effect by using the command provided below.

    /effect give @s minecraft:absorption infinite 0 true
  4. Take three points of damage by using the command provided below.

    /damage @s 3 minecraft:generic
  5. Observe if the half absorption heart overlaps the armor bar.

Observed Behavior:

The half absorption heart is drawn on top of the first armor icon.

Expected Behavior:

The armor bar would be moved up, just like when a second row of hearts is shown.

Attachments

Comments 2

Avoma

(Unassigned)

Unconfirmed

UI

26.3, 26.4 Snapshot 10

Retrieved