mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 04:21:07 +01:00
check for _upgradable instead of diamond
This commit is contained in:
parent
1fc79ffb61
commit
b8fc1c03b3
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue