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