[BUGFIX] Allow fixing netherite armors on anvil
* `mcl_armor`: API change: if `disable_craft` is true, the API will not generate the craft recipe * `mcl_armor`: Netherite change: add `disable_craft` to the armor defination
This commit is contained in:
parent
65f7ca383e
commit
608f7ce69a
|
@ -138,7 +138,7 @@ function mcl_armor.register_set(def)
|
|||
_mcl_upgradable = def.upgradable,
|
||||
})
|
||||
|
||||
if def.craft_material then
|
||||
if def.craft_material and not(def.disable_craft) then
|
||||
minetest.register_craft({
|
||||
output = itemstring,
|
||||
recipe = element.craft(def.craft_material),
|
||||
|
|
|
@ -94,6 +94,8 @@ mcl_armor.register_set({
|
|||
feet = 3,
|
||||
},
|
||||
toughness = 3,
|
||||
craft_material = "mcl_nether:netherite_ingot",
|
||||
disable_craft = true,
|
||||
})
|
||||
|
||||
mcl_armor.register_protection_enchantment({
|
||||
|
|
Loading…
Reference in New Issue