diff --git a/editor/fs/fs_show_what_points_to_this_dialog.lua b/editor/fs/fs_show_what_points_to_this_dialog.lua index de32d86..7f4ff53 100644 --- a/editor/fs/fs_show_what_points_to_this_dialog.lua +++ b/editor/fs/fs_show_what_points_to_this_dialog.lua @@ -246,3 +246,11 @@ yl_speak_up.show_what_points_to_this_dialog = function(player, this_dialog) end return table.concat(formspec, "\n") end + + +yl_speak_up.register_fs("show_what_points_to_this_dialog", + yl_speak_up.input_show_what_points_to_this_dialog, + yl_speak_up.get_fs_show_what_points_to_this_dialog, + -- no special formspec required: + nil +) diff --git a/show_fs.lua b/show_fs.lua index 8c1a16f..a5063ff 100644 --- a/show_fs.lua +++ b/show_fs.lua @@ -110,10 +110,6 @@ yl_speak_up.input_handler = function(player, formname, fields) elseif formname == "yl_speak_up:manage_quest_steps" then yl_speak_up.input_fs_manage_quest_steps(player, formname, fields) return true - -- handled in fs_alternate_text.lua - elseif formname == "yl_speak_up:show_what_points_to_this_dialog" then - yl_speak_up.input_fs_show_what_points_to_this_dialog(player, formname, fields) - return true end end @@ -385,10 +381,6 @@ yl_speak_up.show_fs = function(player, fs_name, param) yl_speak_up.show_fs_ver(pname, "yl_speak_up:manage_quest_steps", yl_speak_up.get_fs_manage_quest_steps(player, param)) - elseif(fs_name == "show_what_points_to_this_dialog") then - yl_speak_up.show_fs_ver(pname, "yl_speak_up:show_what_points_to_this_dialog", - yl_speak_up.show_what_points_to_this_dialog(player, param)) - -- fallback in case of wrong call else minetest.chat_send_player(pname, "Error: Trying to show wrong "..