From 8c732e2dc4e3f2bfcf1ef1c9c80605e4e303f5a2 Mon Sep 17 00:00:00 2001 From: Sokomine Date: Sat, 1 May 2021 14:55:11 +0200 Subject: [PATCH] send debug information to the player that is editing instead of singleplayer --- functions.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/functions.lua b/functions.lua index 1415116..5ea4a6d 100644 --- a/functions.lua +++ b/functions.lua @@ -1701,7 +1701,6 @@ end -- this is called when the player is in edit_mode (editing the NPC); -- the function checks if the player has changed any parameters -- TODO: implement the change detection and ask the user what to do (save? discard?) --- TODO: what if it is a new dialog? -- Parameters: -- pname player name -- fields the fields returned from the formspec @@ -1824,7 +1823,7 @@ yl_speak_up.edit_mode_apply_changes = function(pname, fields) -- TODO just for debugging for k,v in pairs(yl_speak_up.npc_was_changed[ yl_speak_up.edit_mode[pname] ]) do - minetest.chat_send_player("singleplayer", v ) + minetest.chat_send_player(pname, v ) end end -- end of yl_speak_up.edit_mode_apply_changes