From 49620617524b626207fbf025474be6db4404e470 Mon Sep 17 00:00:00 2001 From: Alexander Weber Date: Wed, 14 Feb 2018 02:19:15 +0100 Subject: moved the chat- and UI context to ram --- init.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'init.lua') 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) -- cgit v1.2.3