mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-12-27 11:10:39 +01: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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user