show only npc in npc list - not blocks
This commit is contained in:
parent
aa3fd4580c
commit
62d267cfe7
@ -559,9 +559,10 @@ yl_speak_up.get_fs_show_npc_list = function(pname, selected_row)
|
||||
|
||||
local tmp_liste = {}
|
||||
for k, v in pairs(yl_speak_up.npc_list) do
|
||||
if(level == 2
|
||||
-- show only NPC - not blocks
|
||||
if(type(k) == "number" and (level == 2
|
||||
or (v.owner and v.owner == pname)
|
||||
or (v.may_edit and v.may_edit[pname])) then
|
||||
or (v.may_edit and v.may_edit[pname]))) then
|
||||
table.insert(tmp_liste, k)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user