diff options
author | Alexander Weber <web.alexander@web.de> | 2018-01-07 20:30:27 +0100 |
---|---|---|
committer | Alexander Weber <web.alexander@web.de> | 2018-01-07 20:30:27 +0100 |
commit | 6a09746b903d63302d9dd339877bf450adb3a52c (patch) | |
tree | 62aefa088bc11b5b75968e3c8134edcd1a6ea940 /skinlist.lua | |
parent | 429874698ea5176e15a3b5703ac734b5b123d842 (diff) |
Support for in_inventory_list attribute to hide usable skins in inventory
API-documentation update
Diffstat (limited to 'skinlist.lua')
-rw-r--r-- | skinlist.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/skinlist.lua b/skinlist.lua index 0a06f5d..5ed5e12 100644 --- a/skinlist.lua +++ b/skinlist.lua @@ -75,7 +75,7 @@ end function skins.get_skinlist_for_player(playername) local skinslist = {} for _, skin in pairs(skins.meta) do - if skin:is_applicable_for_player(playername) then + if skin:is_applicable_for_player(playername) and skin:get_meta("in_inventory_list") ~= false then table.insert(skinslist, skin) end end |