forked from MineClone5/MineClone5
Fix player armor enchanting overlay (#2161)
This commit is contained in:
parent
4af046500d
commit
a4655a0c23
|
@ -271,8 +271,10 @@ function mcl_enchanting.initialize()
|
|||
new_def.groups.not_in_craft_guide = 1
|
||||
new_def.groups.enchanted = 1
|
||||
|
||||
if new_def._mcl_armor_texture and not type(new_def._mcl_armor_texture) == "function" then
|
||||
new_def._mcl_armor_texture = new_def._mcl_armor_texture .. mcl_enchanting.overlay
|
||||
if new_def._mcl_armor_texture then
|
||||
if type(new_def._mcl_armor_texture) == "string" then
|
||||
new_def._mcl_armor_texture = new_def._mcl_armor_texture .. mcl_enchanting.overlay
|
||||
end
|
||||
end
|
||||
if new_def._mcl_armor_preview and not type(new_def._mcl_armor_preview) == "function" then
|
||||
new_def._mcl_armor_preview = new_def._mcl_armor_preview .. mcl_enchanting.overlay
|
||||
|
|
Loading…
Reference in New Issue