mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2025-01-11 00:47:28 +01:00
Add support for simple skins by TenPlus1
This commit is contained in:
parent
36688c74a8
commit
4415e2b33b
@ -376,6 +376,11 @@ minetest.register_on_joinplayer(function(player)
|
|||||||
if skin and skins.get_type(skin) == skins.type.MODEL then
|
if skin and skins.get_type(skin) == skins.type.MODEL then
|
||||||
armor.textures[name].skin = skin..".png"
|
armor.textures[name].skin = skin..".png"
|
||||||
end
|
end
|
||||||
|
elseif minetest.get_modpath("simple_skins") then
|
||||||
|
local skin = skins.skins[name]
|
||||||
|
if skin then
|
||||||
|
armor.textures[name].skin = skin..".png"
|
||||||
|
end
|
||||||
elseif minetest.get_modpath("u_skins") then
|
elseif minetest.get_modpath("u_skins") then
|
||||||
local skin = u_skins.u_skins[name]
|
local skin = u_skins.u_skins[name]
|
||||||
if skin and u_skins.get_type(skin) == u_skins.type.MODEL then
|
if skin and u_skins.get_type(skin) == u_skins.type.MODEL then
|
||||||
|
Loading…
Reference in New Issue
Block a user