Fixes Stand appending extra ".png" to texture when a "texture" attribute
is explicity set on the armor's definition.axinite
parent
ec2d11cd05
commit
28b8297f23
|
@ -75,8 +75,11 @@ local function update_entity(pos)
|
|||
local def = stack:get_definition() or {}
|
||||
local groups = def.groups or {}
|
||||
if groups["armor_"..element] then
|
||||
local texture = def.texture or item:gsub("%:", "_")
|
||||
table.insert(textures, texture..".png")
|
||||
if def.texture then
|
||||
table.insert(textures, def.texture)
|
||||
else
|
||||
table.insert(textures, item:gsub("%:", "_")..".png")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue