check for _upgradable instead of diamond
parent
1fc79ffb61
commit
b8fc1c03b3
|
@ -115,7 +115,7 @@ function mcl_armor.register_set(def)
|
|||
groups[k] = v
|
||||
end
|
||||
local upgrade_item = nil
|
||||
if itemstring:find("_diamond") and def._mcl_upgrade_item_material then
|
||||
if def._mcl_upgradable and def._mcl_upgrade_item_material then
|
||||
upgrade_item = itemstring:gsub("_[%l%d]*$",def._mcl_upgrade_item_material)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue