summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
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)