mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-12-27 11:10:39 +01:00
Reduce skin_mod visibility (#53)
This commit is contained in:
parent
38fc2cff2b
commit
ac7615212b
@ -529,12 +529,14 @@ armor.remove_all = function(self, player)
|
||||
self:save_armor_inventory(player)
|
||||
end
|
||||
|
||||
local skin_mod
|
||||
|
||||
armor.get_player_skin = function(self, name)
|
||||
if (self.skin_mod == "skins" or self.skin_mod == "simple_skins") and skins.skins[name] then
|
||||
if (skin_mod == "skins" or skin_mod == "simple_skins") and skins.skins[name] then
|
||||
return skins.skins[name]..".png"
|
||||
elseif self.skin_mod == "u_skins" and u_skins.u_skins[name] then
|
||||
elseif skin_mod == "u_skins" and u_skins.u_skins[name] then
|
||||
return u_skins.u_skins[name]..".png"
|
||||
elseif self.skin_mod == "wardrobe" and wardrobe.playerSkins and wardrobe.playerSkins[name] then
|
||||
elseif skin_mod == "wardrobe" and wardrobe.playerSkins and wardrobe.playerSkins[name] then
|
||||
return wardrobe.playerSkins[name]
|
||||
end
|
||||
return armor.default_skin..".png"
|
||||
@ -678,5 +680,5 @@ end
|
||||
--
|
||||
-- Useful for skin mod forks that do not use the same name.
|
||||
armor.set_skin_mod = function(mod)
|
||||
armor.skin_mod = mod
|
||||
skin_mod = mod
|
||||
end
|
||||
|
@ -96,7 +96,7 @@ for _, mod in pairs(skin_mods) do
|
||||
armor:add_preview(fn)
|
||||
end
|
||||
end
|
||||
armor.skin_mod = mod
|
||||
armor.set_skin_mod(mod)
|
||||
end
|
||||
end
|
||||
if not minetest.get_modpath("moreores") then
|
||||
|
Loading…
Reference in New Issue
Block a user