Mojira Archive
MC-99680

Heart jittering effect doesn't take absorption into account

The bug

The check to see if the player's hearts should shake only takes into account the actual health bar, not any health granted by the absorption status effect.

Steps to Reproduce by [Mod] j_p_smith

  1. Ensure you are in survival or adventure mode:
    /gamemode survival
  2. Disable natural regeneration:
    /gamerule naturalRegeneration false
  3. Damage yourself by running the following command three times:
    /effect give @s instant_damage

    Your health bar begins to shake

  4. Give yourself the absorption status effect:
    /effect give @s absorption

    Your health bar continues to shake, despite your total health being greater than 4

Code analysis

Code analysis by [Mod] bemoty can be found in this comment.

Fixed

KingSupernova

2016-03-18, 05:15 AM

2021-06-30, 05:56 PM

2021-06-30, 05:56 PM

3

5

Confirmed

UI

Minecraft 1.9.1 Pre-Release 3 - 21w11aMinecraft 1.9.1 Pre-Release 3, Minecraft 1.10.2, Minecraft 16w42a, Minecraft 16w43a, Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 18w07c, Minecraft 1.13.1, 1.16.1, 20w46a, 20w51a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w07a, 21w08b, 21w11a

1.17 Pre-release 1