diff options
author | Alexander Weber <web.alexander@web.de> | 2018-01-07 14:50:22 +0100 |
---|---|---|
committer | Alexander Weber <web.alexander@web.de> | 2018-01-07 14:50:22 +0100 |
commit | 7df6363aa0247068205a09815721164813849b19 (patch) | |
tree | 838b88f355c0c50aacea7fc7e00589a9eb9f9886 /sfinv_page.lua | |
parent | 71e05bbd6863ca91db16c386c671da77e8f9e9eb (diff) |
Rework private skins handling
-add skin:is_applicable_for_player(playername) method
- hide private skins in unified_inventory since not supported
- check player assignment in skins.assign_player_skin() + inherited to skins.set_player_skin()
Diffstat (limited to 'sfinv_page.lua')
-rw-r--r-- | sfinv_page.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfinv_page.lua b/sfinv_page.lua index c62e7e7..1d63163 100644 --- a/sfinv_page.lua +++ b/sfinv_page.lua @@ -84,7 +84,7 @@ sfinv.register_page("skins:overview", { title = "Skins", get = function(self, player, context) -- collect skins data - context.skins_list = skins.get_skinlist("player:"..player:get_player_name(), true) + context.skins_list = skins.get_skinlist_for_player(player:get_player_name()) context.total_pages = 1 for i, skin in ipairs(context.skins_list ) do local page = math.floor((i-1) / 16)+1 |