mirror of
https://gitea.your-land.de/Sokomine/yl_speak_up.git
synced 2025-08-23 04:35:48 +02:00
handled edge case in npc_talk_generic
This commit is contained in:
parent
87e3bc9176
commit
2355669761
@ -24,6 +24,10 @@ minetest.register_chatcommand( 'npc_talk_generic', {
|
||||
local res = yl_speak_up.check_and_add_as_generic_dialog(dialog, n_id)
|
||||
minetest.chat_send_player(pname, "Adding NPC "..tostring(n_id).."..: "..tostring(res))
|
||||
do_reload = true
|
||||
elseif(parts[1] == "add" and i ~= -1) then
|
||||
minetest.chat_send_player(pname, "NPC "..tostring(parts[2])..
|
||||
" is already registered as a generic NPC. You may try to "..
|
||||
"remove and add it again if something went wrong.")
|
||||
elseif(parts[1] == "remove" and i ~= -1) then
|
||||
table.remove(generic_npc_list, i)
|
||||
minetest.chat_send_player(pname, "Removing NPC "..tostring(parts[2]).." ..")
|
||||
|
Loading…
Reference in New Issue
Block a user