summaryrefslogtreecommitdiff
path: root/skinlist.lua
diff options
context:
space:
mode:
authorAlexander Weber <web.alexander@web.de>2018-01-07 20:30:27 +0100
committerAlexander Weber <web.alexander@web.de>2018-01-07 20:30:27 +0100
commit6a09746b903d63302d9dd339877bf450adb3a52c (patch)
tree62aefa088bc11b5b75968e3c8134edcd1a6ea940 /skinlist.lua
parent429874698ea5176e15a3b5703ac734b5b123d842 (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.lua2
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