From b8fc1c03b3e3b80b69569698e6166179c1eb8a63 Mon Sep 17 00:00:00 2001 From: cora Date: Tue, 28 Jun 2022 11:59:04 +0200 Subject: [PATCH] check for _upgradable instead of diamond --- mods/ITEMS/mcl_armor/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_armor/api.lua b/mods/ITEMS/mcl_armor/api.lua index 8d08524c69..1b9aa4f73c 100644 --- a/mods/ITEMS/mcl_armor/api.lua +++ b/mods/ITEMS/mcl_armor/api.lua @@ -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