summaryrefslogtreecommitdiff
path: root/skin_meta_api.lua
diff options
context:
space:
mode:
authorAlexander Weber <web.alexander@web.de>2017-06-18 23:15:58 +0200
committerAlexander Weber <web.alexander@web.de>2017-06-18 23:15:58 +0200
commit57b815f91ffd9bdd165c741350c6099f6b08685b (patch)
tree7070f5ff9fa564e68911defa017f328366f3d351 /skin_meta_api.lua
parent920061c0f190d6e79bf6720c983bf1b24aba4bc7 (diff)
changes needed for character_creator support
Diffstat (limited to 'skin_meta_api.lua')
-rw-r--r--skin_meta_api.lua12
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