diff --git a/fs_npc_list.lua b/fs_npc_list.lua index 5de8654..91ab4d1 100644 --- a/fs_npc_list.lua +++ b/fs_npc_list.lua @@ -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