diff options
Diffstat (limited to 'skin_meta_api.lua')
-rw-r--r-- | skin_meta_api.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/skin_meta_api.lua b/skin_meta_api.lua index 367dee1..f01671c 100644 --- a/skin_meta_api.lua +++ b/skin_meta_api.lua @@ -54,3 +54,15 @@ end function skin_class:get_preview() return self._preview or "player.png" end + +function skin_class:set_skin(player) + player:set_properties({ + visual_size = { + x = 1, + y = 1 + } + }) + player:set_properties({ + textures = {self:get_texture()}, + }) +end |