mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-11-22 20:43:43 +01:00
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