diff options
author | GreenXenith <bl00ntdmonkey@yahoo.com> | 2018-09-11 10:00:17 +0200 |
---|---|---|
committer | Hume2 <teratux.mail@gmail.com> | 2018-09-11 10:02:06 +0200 |
commit | 20b52d315db3d813f9c1490044f6f043ce8a7c64 (patch) | |
tree | 7c54f412f41957aead5d9d5ae0b130e4d0e7fba1 | |
parent | 1f8da82be406721a20cad7ca2005f44268942103 (diff) |
Fix 3D armour bug
-rw-r--r-- | init.lua | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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) |