show only npc in npc list - not blocks

This commit is contained in:
Sokomine 2023-11-05 12:24:20 +01:00
parent aa3fd4580c
commit 62d267cfe7

View File

@ -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