From 57b815f91ffd9bdd165c741350c6099f6b08685b Mon Sep 17 00:00:00 2001 From: Alexander Weber Date: Sun, 18 Jun 2017 23:15:58 +0200 Subject: changes needed for character_creator support --- skin_meta_api.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'skin_meta_api.lua') 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 -- cgit v1.2.3