forked from MineClone5/MineClone5
Try 1 to fix the stupid changes to mcl_armor that caused non-upgradable diamond armor
This commit is contained in:
parent
8c2f5bc3d2
commit
1dcd555149
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue