fixed bug regarding missing pname

This commit is contained in:
Sokomine 2023-02-24 06:52:27 +01:00
parent c2b672f010
commit 38b61d6074

View File

@ -31,7 +31,7 @@ end
yl_speak_up.check_one_npc_for_migration = function(dialog, pname, n_id)
-- nothing defined yet - nothing to repair
if(not(dialog.n_dialogs)) then
minetest.chat_send_player(" NPC "..tostring(n_id).." has nothing to say.")
minetest.chat_send_player(pname, " NPC "..tostring(n_id).." has nothing to say.")
return
end
local c_effect_exec_lua = 0