Try 1 to fix the stupid changes to mcl_armor that caused non-upgradable diamond armor

This commit is contained in:
Code-Sploit 2021-05-08 16:53:46 +00:00
parent 8c2f5bc3d2
commit 1dcd555149
2 changed files with 3 additions and 1 deletions

View File

@ -111,6 +111,7 @@ function mcl_armor.register_set(def)
groups.mcl_armor_toughness = def.toughness
groups.mcl_armor_uses = (durabilities[name] or math.floor(def.durability * element.durability)) + 1
groups.enchantability = def.enchantability
groups.upgradable = def.upgradable
for k, v in pairs(element_groups) do
groups[k] = v

View File

@ -79,6 +79,7 @@ mcl_armor.register_set({
},
toughness = 2,
craft_material = "mcl_core:diamond",
upgradable = true
})
mcl_armor.register_set({
@ -208,7 +209,7 @@ minetest.register_tool("mcl_armor:elytra", {
_doc_items_longdesc = mcl_armor.longdesc,
_doc_items_usagehelp = mcl_armor.usage,
inventory_image = "mcl_armor_inv_elytra.png",
groups = {armor = 1, non_combat_armor = 1, armor_torso = 1, non_combat_torso = 1, mcl_armor_uses = 10},
groups = {armor = 1, non_combat_armor = 1, armor_torso = 1, non_combat_torso = 1, mcl_armor_uses = 10, enchantability = 1},
sounds = {
_mcl_armor_equip = "mcl_armor_equip_leather",
_mcl_armor_unequip = "mcl_armor_unequip_leather",