mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-08-20 04:54:09 +02:00
Only apply valid wardrobe mod skins, fixes #93
This commit is contained in:
parent
a1d904c517
commit
709535dff0
@ -245,7 +245,10 @@ armor.get_player_skin = function(self, name)
|
|||||||
elseif self.skin_mod == "u_skins" then
|
elseif self.skin_mod == "u_skins" then
|
||||||
skin = u_skins.u_skins[name]
|
skin = u_skins.u_skins[name]
|
||||||
elseif self.skin_mod == "wardrobe" then
|
elseif self.skin_mod == "wardrobe" then
|
||||||
skin = string.gsub(wardrobe.playerSkins[name], "%.png$","")
|
local skins = wardrobe.playerSkins or {}
|
||||||
|
if skins[name] then
|
||||||
|
skin = string.gsub(skins[name], "%.png$","")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
return skin or armor.default_skin
|
return skin or armor.default_skin
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user