forked from mtcontrib/3d_armor
Fix potential missing texture bug
This commit is contained in:
parent
11ce84873b
commit
fe9664589a
@ -191,8 +191,8 @@ armor.set_player_armor = function(self, player)
|
||||
end
|
||||
local item = stack:get_name()
|
||||
local tex = def.texture or item:gsub("%:", "_")
|
||||
local prev = def.preview or tex.."_preview"
|
||||
tex = tex:gsub(".png$", "")
|
||||
local prev = def.preview or tex.."_preview"
|
||||
prev = prev:gsub(".png$", "")
|
||||
texture = texture.."^"..tex..".png"
|
||||
preview = preview.."^"..prev..".png"
|
||||
|
Loading…
Reference in New Issue
Block a user