Fix upgrading of diamond armor
parent
05a9b614b0
commit
0133f94a36
|
@ -111,7 +111,6 @@ 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._mcl_upgradable = def._mcl_upgradable
|
|
||||||
|
|
||||||
for k, v in pairs(element_groups) do
|
for k, v in pairs(element_groups) do
|
||||||
groups[k] = v
|
groups[k] = v
|
||||||
|
@ -136,7 +135,7 @@ function mcl_armor.register_set(def)
|
||||||
_mcl_armor_element = name,
|
_mcl_armor_element = name,
|
||||||
_mcl_armor_texture = textures[name] or modname .. "_" .. itemname .. ".png",
|
_mcl_armor_texture = textures[name] or modname .. "_" .. itemname .. ".png",
|
||||||
_mcl_armor_preview = previews[name] or modname .. "_" .. itemname .. "_preview.png",
|
_mcl_armor_preview = previews[name] or modname .. "_" .. itemname .. "_preview.png",
|
||||||
_mcl_upgradable = def._mcl_upgradable
|
_mcl_upgradable = def.upgradable,
|
||||||
})
|
})
|
||||||
|
|
||||||
if def.craft_material then
|
if def.craft_material then
|
||||||
|
|
|
@ -79,7 +79,7 @@ mcl_armor.register_set({
|
||||||
},
|
},
|
||||||
toughness = 2,
|
toughness = 2,
|
||||||
craft_material = "mcl_core:diamond",
|
craft_material = "mcl_core:diamond",
|
||||||
_mcl_upgradable = 1
|
upgradable = true,
|
||||||
})
|
})
|
||||||
|
|
||||||
mcl_armor.register_set({
|
mcl_armor.register_set({
|
||||||
|
@ -94,7 +94,6 @@ mcl_armor.register_set({
|
||||||
feet = 3,
|
feet = 3,
|
||||||
},
|
},
|
||||||
toughness = 3,
|
toughness = 3,
|
||||||
craft_material = "mcl_netherite:netherite_ingot",
|
|
||||||
})
|
})
|
||||||
|
|
||||||
mcl_armor.register_protection_enchantment({
|
mcl_armor.register_protection_enchantment({
|
||||||
|
|
Loading…
Reference in New Issue