summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreenXenith <bl00ntdmonkey@yahoo.com>2018-09-11 10:00:17 +0200
committerHume2 <teratux.mail@gmail.com>2018-09-11 10:02:06 +0200
commit20b52d315db3d813f9c1490044f6f043ce8a7c64 (patch)
tree7c54f412f41957aead5d9d5ae0b130e4d0e7fba1
parent1f8da82be406721a20cad7ca2005f44268942103 (diff)
Fix 3D armour bug
-rw-r--r--init.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index c9cbfca..e573f5c 100644
--- a/init.lua
+++ b/init.lua
@@ -35,7 +35,12 @@ local function get_player_skin(player)
elseif skin_mod == "wardrobe" and wardrobe.playerSkins and wardrobe.playerSkins[name] then
return wardrobe.playerSkins[name]..armor_tex
end
- return player:get_properties().textures[1]..armor_tex
+ local skin = player:get_properties().textures[1]
+ -- If we just have 3d_armor enabled make sure we get the player skin properly
+ if minetest.global_exists("armor") then
+ skin = armor:get_player_skin(name)
+ end
+ return skin..armor_tex
end
-- Keep track of attached players (for leaveplayer)