From c7f9fc81c39d89830c37994b484a4afaa466d76a Mon Sep 17 00:00:00 2001 From: Sokomine Date: Tue, 30 Jan 2024 23:43:28 +0100 Subject: [PATCH] passing on newname parameter to mobs.mob_class.update_tag --- interface_mobs_api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface_mobs_api.lua b/interface_mobs_api.lua index 99bddfd..1942853 100644 --- a/interface_mobs_api.lua +++ b/interface_mobs_api.lua @@ -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 end -- 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 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 local qua = 0