HyperPigeon / Eldritch-Mobs

A port of the Infernal Mobs mod for Fabric 1.16. Made for Modfest 2020.
https://www.curseforge.com/minecraft/mc-mods/eldritch-mobs
MIT License
8 stars 14 forks source link

Fix setCustomName causing NPEs #2

Closed Draylar closed 4 years ago

Draylar commented 4 years ago

This fixes the NPE Eldritch Mobs has with mobs that have boss bars. I moved the constructor setCustomName call to only occur on the entity's first tick. This will not override nametags. Tested with vanilla bosses & AdventureZ Stone Golem in the modfest pack outside dev.

(Master branch doesn't compile, so I also included simple changes to get it running). Version bump to 1.2.6.