VazkiiMods / Neat

Functional minimalistic Unit Frames for the modern Minecrafter
Other
70 stars 72 forks source link

Fix healthbars blocked by nonliving passengers. #138

Closed Provismet closed 1 year ago

Provismet commented 1 year ago

This PR fixes an edge case where mobs that have a non-living passenger (such as a splash potion) will not render their healthbar.

Implementation tested on Fabric 1.20.1.

In more detail:
Currently Neat does not render healthbars for mobs with passengers, but it also does not render healthbars for non-living entities. This creates the aforementioned edge case and render no healthbar for the mob-stack.
I've added an extra condition to the passenger check, now if the first passenger of a mob is non-living, then the healthbar of that mob will still render.