Fix player armor enchanting overlay (#2161)
This commit is contained in:
parent
3ca40cd4e4
commit
d0b60e2399
|
@ -277,9 +277,11 @@ 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
|
||||
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
|
||||
|
||||
new_def._mcl_enchanting_enchanted_tool = new_name
|
||||
new_def.after_use = get_after_use_callback(itemdef)
|
||||
|
|
Loading…
Reference in New Issue