From 6a09746b903d63302d9dd339877bf450adb3a52c Mon Sep 17 00:00:00 2001 From: Alexander Weber Date: Sun, 7 Jan 2018 20:30:27 +0100 Subject: Support for in_inventory_list attribute to hide usable skins in inventory API-documentation update --- skinlist.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'skinlist.lua') 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 -- cgit v1.2.3