Only apply valid wardrobe mod skins, fixes #93

This commit is contained in:
stujones11 2017-03-18 22:14:08 +00:00
parent a1d904c517
commit 709535dff0

@ -245,7 +245,10 @@ armor.get_player_skin = function(self, name)
elseif self.skin_mod == "u_skins" then
skin = u_skins.u_skins[name]
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
return skin or armor.default_skin
end