1
0
Fork 0

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

mineclone5
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_toughness = def.toughness
groups.mcl_armor_uses = (durabilities[name] or math.floor(def.durability * element.durability)) + 1 groups.mcl_armor_uses = (durabilities[name] or math.floor(def.durability * element.durability)) + 1
groups.enchantability = def.enchantability groups.enchantability = def.enchantability
groups.upgradable = def.upgradable
for k, v in pairs(element_groups) do for k, v in pairs(element_groups) do
groups[k] = v groups[k] = v

View File

@ -79,6 +79,7 @@ mcl_armor.register_set({
}, },
toughness = 2, toughness = 2,
craft_material = "mcl_core:diamond", craft_material = "mcl_core:diamond",
upgradable = true
}) })
mcl_armor.register_set({ mcl_armor.register_set({
@ -208,7 +209,7 @@ minetest.register_tool("mcl_armor:elytra", {
_doc_items_longdesc = mcl_armor.longdesc, _doc_items_longdesc = mcl_armor.longdesc,
_doc_items_usagehelp = mcl_armor.usage, _doc_items_usagehelp = mcl_armor.usage,
inventory_image = "mcl_armor_inv_elytra.png", 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 = { sounds = {
_mcl_armor_equip = "mcl_armor_equip_leather", _mcl_armor_equip = "mcl_armor_equip_leather",
_mcl_armor_unequip = "mcl_armor_unequip_leather", _mcl_armor_unequip = "mcl_armor_unequip_leather",