mirror of
https://gitea.your-land.de/Sokomine/yl_speak_up.git
synced 2025-08-22 04:05:48 +02:00
fixed exit button not working in initial config
This commit is contained in:
parent
630287d99a
commit
abf063975e
@ -30,10 +30,10 @@ yl_speak_up.input_fs_initial_config = function(player, formname, fields)
|
|||||||
and not(fields.show_nametag)
|
and not(fields.show_nametag)
|
||||||
and not(fields.list_may_edit)
|
and not(fields.list_may_edit)
|
||||||
and not(fields.add_may_edit)
|
and not(fields.add_may_edit)
|
||||||
) or (fields and fields.Exit)) then
|
) or (fields and fields.exit)) then
|
||||||
local dialog = yl_speak_up.speak_to[pname].dialog
|
local dialog = yl_speak_up.speak_to[pname].dialog
|
||||||
-- unconfigured NPC
|
-- unconfigured NPC
|
||||||
if(fields and fields.Exit and not(dialog) or not(dialog.n_dialogs)) then
|
if(fields and fields.exit and not(dialog) or not(dialog.n_dialogs)) then
|
||||||
minetest.chat_send_player(pname, "Aborting initial configuration.")
|
minetest.chat_send_player(pname, "Aborting initial configuration.")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user