summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorbell07 <web.alexander@web.de>2018-06-22 21:52:47 +0200
committerGitHub <noreply@github.com>2018-06-22 21:52:47 +0200
commit2900d789af3e56fb07695cf140a2a86aee279801 (patch)
treec091790875de1f376f4de606a25c3997f5783325 /init.lua
parentbd8a575c3e69ed451863b025930bdf67c4a9a395 (diff)
parent44b482e53a75a1d2aa3fa0694c31fab8b233bcce (diff)
Merge pull request #16 from bell07/clothing_support
clothing support
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 34f492e..8be9ac0 100644
--- a/init.lua
+++ b/init.lua
@@ -51,6 +51,11 @@ if minetest.global_exists("armor") then
end
end
+if minetest.global_exists("clothing") and clothing.player_textures then
+ skins.clothing_loaded = true
+ clothing:register_on_update(skins.update_player_skin)
+end
+
-- Update skin on join
skins.ui_context = {}
minetest.register_on_joinplayer(function(player)