Iron's Spells 'n Spellbooks

Iron's Spells 'n Spellbooks

16M Downloads

[Bug] No health bar visible using `YDM's MobHealthBar` set to `On Aggro`

SiverDX opened this issue ยท 0 comments

commented

Observed behaviour

This seems to only occur with the mobs of this mod
image

If I don't use On Aggro I can see the health bar

Code from the mod for this behaviour:

if (event.getEntity() instanceof Mob && ((Mob)event.getEntity()).m_5912_()) {
    showBar = true;
}

Not sure where to look to see the mapping of that function
Maybe it's this?

public boolean isAggressive() {
      return (this.entityData.get(DATA_MOB_FLAGS_ID) & 4) != 0;
   }

Expected behaviour

See the health bar when the mob is attacking you

Steps to reproduce

  1. Have both mods installed
  2. Set health bar visibility to On Aggro
  3. Be in Survival mode and spawn in a mob of this mod

Server Type

Single Player

Crashlog

No response

Iron's Spells N Spellbooks version

1.1.1

Forge version

1.19.2 - 43.2.11

Other mods

Bug occurs with the following setup:
image