forked from Sokomine/yl_speak_up
fixed bugs with undeclared variables
This commit is contained in:
parent
1717ad442b
commit
b8615fd2ce
@ -27,7 +27,7 @@ minetest.register_chatcommand( 'npc_talk_debug', {
|
||||
description = "Sets you as debugger for the yl_speak_up-NPC with the ID <n_id>.\n"..
|
||||
" <list> lists the NPC you are currently debugging.\n"..
|
||||
" <off> turns debug mode off again.",
|
||||
privs = {npc_talk_owner},
|
||||
privs = {npc_talk_owner = true},
|
||||
func = function(pname, param)
|
||||
if(param and param == "off") then
|
||||
local count = 0
|
||||
|
@ -86,6 +86,7 @@ yl_speak_up.get_fs_save_or_discard_changes = function(player, param)
|
||||
local n_id = yl_speak_up.speak_to[pname].n_id
|
||||
-- TODO
|
||||
local target_name = "quit"
|
||||
local target_dialog = nil -- TODO
|
||||
if(target_dialog and target_dialog ~= "") then
|
||||
target_name = "go on to dialog "..minetest.formspec_escape(target_dialog)
|
||||
if(target_dialog == "edit_option_dialog") then
|
||||
|
Loading…
Reference in New Issue
Block a user