summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 32a2205..2a27eb8 100644
--- a/init.lua
+++ b/init.lua
@@ -44,6 +44,12 @@ if minetest.global_exists("armor") then
end
-- Update skin on join
+skins.ui_context = {}
minetest.register_on_joinplayer(function(player)
skins.update_player_skin(player)
+ skins.ui_context[player:get_player_name()] = {}
+end)
+
+minetest.register_on_leaveplayer(function(player)
+ skins.ui_context[player:get_player_name()] = nil
end)