diff --git a/interface_mobs_api.lua b/interface_mobs_api.lua index 68f676c..aeccc2c 100644 --- a/interface_mobs_api.lua +++ b/interface_mobs_api.lua @@ -176,9 +176,13 @@ mobs.mob_class.update_tag = function(self, newname) local hp_max = 0 if(prop) then hp_max = prop.hp_max - else + end + if(not(hp_max)) then hp_max = self.hp_max end + if(not(hp_max)) then + hp_max = self.health + end local qua = hp_max / 6 if(self.force_nametag_color) then