passing on newname parameter to mobs.mob_class.update_tag

This commit is contained in:
Sokomine 2024-01-30 23:43:28 +01:00
parent 99e2b4c2ec
commit c7f9fc81c3

View File

@ -134,11 +134,11 @@ if(not(yl_speak_up.orig_mobs_update_tag)) then
yl_speak_up.orig_mobs_update_tag = mobs.mob_class.update_tag yl_speak_up.orig_mobs_update_tag = mobs.mob_class.update_tag
end end
-- update nametag and infotext -- update nametag and infotext
mobs.mob_class.update_tag = function(self) mobs.mob_class.update_tag = function(self, newname)
-- we are only responsible for talking NPC -- we are only responsible for talking NPC
if(not(self) or not(self.yl_speak_up)) then if(not(self) or not(self.yl_speak_up)) then
return yl_speak_up.orig_mobs_update_tag(self) return yl_speak_up.orig_mobs_update_tag(self, newname)
end end
local qua = 0 local qua = 0