send debug information to the player that is editing instead of singleplayer

This commit is contained in:
Sokomine 2021-05-01 14:55:11 +02:00
parent 9a0dc0a1fe
commit 8c732e2dc4

View File

@ -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