From a69f6ad7add87b1b7a9c217c5f1f731db96166bb Mon Sep 17 00:00:00 2001 From: Zsolt Bartha Date: Wed, 14 May 2014 23:42:49 +0000 Subject: [PATCH] Update player.lua --- mods/default/player.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mods/default/player.lua b/mods/default/player.lua index f02e0f46..8f8bd36a 100644 --- a/mods/default/player.lua +++ b/mods/default/player.lua @@ -50,6 +50,12 @@ model_def = { ]] +if minetest.setting_getbool(astronaut) = false then + astSkin = "charater.png" +else + astSkin = "astronaut.png" +end + -- Player animation blending -- Note: This is currently broken due to a bug in Irrlicht, leave at 0 local animation_blend = 0 @@ -66,7 +72,7 @@ end -- Default player appearance default.player_register_model("character.x", { animation_speed = 30, - textures = {"character.png", }, + textures = {astSkin, }, animations = { -- Standard animations. stand = { x= 0, y= 79, },