diff options
Diffstat (limited to 'formspecs.lua')
-rw-r--r-- | formspecs.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/formspecs.lua b/formspecs.lua index d1174c9..328c2f3 100644 --- a/formspecs.lua +++ b/formspecs.lua @@ -1,5 +1,15 @@ local S = skins.S +function skins.get_formspec_context(player) + if player then + local playername = player:get_player_name() + skins.ui_context[playername] = skins.ui_context[playername] or {} + return skins.ui_context[playername] + else + return {} + end +end + -- Show skin info function skins.get_skin_info_formspec(skin) local texture = skin:get_texture() |