Allow armor textures to be specified by the tool definition

This commit is contained in:
stujones11 2015-12-04 18:42:42 +00:00
parent e1caf0ab0c
commit 64ec3dcf93

@ -171,7 +171,10 @@ armor.set_player_armor = function(self, player)
if v == false then
local level = def.groups["armor_"..k]
if level then
local texture = item:gsub("%:", "_")
local texture = def.texture
if not texture then
texture = item:gsub("%:", "_")
end
table.insert(textures, texture..".png")
preview = preview.."^"..texture.."_preview.png"
armor_level = armor_level + level