summaryrefslogtreecommitdiff
path: root/api.lua
diff options
context:
space:
mode:
Diffstat (limited to 'api.lua')
-rw-r--r--api.lua9
1 files changed, 1 insertions, 8 deletions
diff --git a/api.lua b/api.lua
index b77c7c4..492024f 100644
--- a/api.lua
+++ b/api.lua
@@ -26,12 +26,5 @@ end
-- update visuals
skins.update_player_skin = function(player)
local skin = skins.get_player_skin(player)
- player:set_properties({
- textures = {skin:get_texture()},
- })
+ skin:set_skin(player)
end
-
--- Update skin on join
-minetest.register_on_joinplayer(function(player)
- skins.update_player_skin(player)
-end)