1
0
Fork 0

check for _upgradable instead of diamond

wood_api
cora 2022-06-28 11:59:04 +02:00
parent 1fc79ffb61
commit b8fc1c03b3
1 changed files with 1 additions and 1 deletions

View File

@ -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