mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-11-29 23:43:42 +01:00
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
|
if v == false then
|
||||||
local level = def.groups["armor_"..k]
|
local level = def.groups["armor_"..k]
|
||||||
if level then
|
if level then
|
||||||
local texture = def.texture
|
local texture = def.texture or item:gsub("%:", "_")
|
||||||
if not texture then
|
|
||||||
texture = item:gsub("%:", "_")
|
|
||||||
end
|
|
||||||
table.insert(textures, texture..".png")
|
table.insert(textures, texture..".png")
|
||||||
preview = preview.."^"..texture.."_preview.png"
|
preview = preview.."^"..texture.."_preview.png"
|
||||||
armor_level = armor_level + level
|
armor_level = armor_level + level
|
||||||
|
Loading…
Reference in New Issue
Block a user