diff options
author | bell07 <web.alexander@web.de> | 2018-03-02 12:50:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-02 12:50:00 +0100 |
commit | 5a640bc12da36ac35c33051cffaf72d82fb2cafd (patch) | |
tree | 15aacecb3a5edd5d7efb772fba0d7593e0e0d505 /chatcommands.lua | |
parent | 3abb6aee40dd6159ab4db4c01981e76ef6ad3b90 (diff) | |
parent | 4fd927e34eadd1b44a75f7ba3ba5dea3abcc3684 (diff) |
Merge pull request #9 from minetest-mods/bugfix_8
Create and get UI-context on demand
Closes #8
Diffstat (limited to 'chatcommands.lua')
-rw-r--r-- | chatcommands.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chatcommands.lua b/chatcommands.lua index d22e6fd..c84b695 100644 --- a/chatcommands.lua +++ b/chatcommands.lua @@ -1,7 +1,7 @@ local S = skins.S local function show_selection_formspec(player) - local context = skins.ui_context[player:get_player_name()] + local context = skins.get_formspec_context(player) local name = player:get_player_name() local skin = skins.get_player_skin(player) local formspec = "size[8,8]"..skins.get_skin_info_formspec(skin) @@ -89,7 +89,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) return end - local context = skins.ui_context[player:get_player_name()] + local context = skins.get_formspec_context(player) local action = skins.on_skin_selection_receive_fields(player, context, fields) if action == 'set' then |