mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-02-16 12:52:27 +01:00
check for _upgradable instead of diamond
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user