completed get_fs_edit_option_effect_move

This commit is contained in:
Sokomine 2021-07-02 17:29:25 +02:00
parent 7f6453ce8c
commit a7ba7f8e85

View File

@ -1494,7 +1494,9 @@ yl_speak_up.get_fs_edit_option_effect_give_item_or_take_item = function(
end
yl_speak_up.get_fs_edit_option_effect_move = function(pname, dialog, formspec, data, id_prefix, save_button, e)
-- "move the player to a given position (requires npc_master priv)", -- 9
yl_speak_up.get_fs_edit_option_effect_move = function(
pname, dialog, formspec, data, id_prefix, save_button, e)
if(e) then
if(e[ "r_value"] and type(e[ "r_value" ]) == "string") then
local pos = minetest.string_to_pos(e[ "r_value" ])
@ -1505,7 +1507,8 @@ yl_speak_up.get_fs_edit_option_effect_move = function(pname, dialog, formspec, d
end
end
end
return "label[0.2,3.0;Move the player to this position:]"..
return formspec..
"label[0.2,3.0;Move the player to this position:]"..
"label[0.2,3.5;Note: You can *save* this effect only if you have the "..
"\"npc_master\" priv!]"..
"label[0.2,5.3;X:]"..