forked from Sokomine/yl_speak_up
fixed crash
This commit is contained in:
parent
5db7b9c909
commit
fcebadf6c4
@ -1157,8 +1157,8 @@ local function get_fs_talkdialog(player, n_id, d_id)
|
|||||||
|
|
||||||
-- do not crash in case of error
|
-- do not crash in case of error
|
||||||
if(not(active_dialog)) then
|
if(not(active_dialog)) then
|
||||||
minetest.chat_send_player(pname, "Ups! Something went wrong. Please try again.")
|
return "size[6,2]"..
|
||||||
return
|
"label[0.2,0.5;Ups! Something went wrong. Please try again.]"
|
||||||
end
|
end
|
||||||
local allowed = calculate_displayable_options(pname, active_dialog.d_options)
|
local allowed = calculate_displayable_options(pname, active_dialog.d_options)
|
||||||
yl_speak_up.speak_to[pname].allowed = allowed
|
yl_speak_up.speak_to[pname].allowed = allowed
|
||||||
|
Loading…
Reference in New Issue
Block a user