forked from mtcontrib/3d_armor
Simplify previous commit
This commit is contained in:
parent
64ec3dcf93
commit
991d2955e0
@ -171,10 +171,7 @@ armor.set_player_armor = function(self, player)
|
||||
if v == false then
|
||||
local level = def.groups["armor_"..k]
|
||||
if level then
|
||||
local texture = def.texture
|
||||
if not texture then
|
||||
texture = item:gsub("%:", "_")
|
||||
end
|
||||
local texture = def.texture or item:gsub("%:", "_")
|
||||
table.insert(textures, texture..".png")
|
||||
preview = preview.."^"..texture.."_preview.png"
|
||||
armor_level = armor_level + level
|
||||
|
Loading…
Reference in New Issue
Block a user