From ac590a05b104d1ee06835a171d0fc5308a4cf001 Mon Sep 17 00:00:00 2001 From: Emojigit Date: Mon, 7 Jun 2021 15:59:45 +0800 Subject: [PATCH] Change requested in MineCLone2/MineClone2#1787 https://git.minetest.land/MineClone2/MineClone2/issues/1787#issuecomment-24124 --- mods/ITEMS/mcl_armor/api.lua | 2 +- mods/ITEMS/mcl_armor/register.lua | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/mods/ITEMS/mcl_armor/api.lua b/mods/ITEMS/mcl_armor/api.lua index 9af990d05..8e295827c 100644 --- a/mods/ITEMS/mcl_armor/api.lua +++ b/mods/ITEMS/mcl_armor/api.lua @@ -138,7 +138,7 @@ function mcl_armor.register_set(def) _mcl_upgradable = def.upgradable, }) - if def.craft_material and not(def.disable_craft) then + if def.craft_material then minetest.register_craft({ output = itemstring, recipe = element.craft(def.craft_material), diff --git a/mods/ITEMS/mcl_armor/register.lua b/mods/ITEMS/mcl_armor/register.lua index d1f56e09c..02933617f 100644 --- a/mods/ITEMS/mcl_armor/register.lua +++ b/mods/ITEMS/mcl_armor/register.lua @@ -94,8 +94,7 @@ mcl_armor.register_set({ feet = 3, }, toughness = 3, - craft_material = "mcl_nether:netherite_ingot", - disable_craft = true, + repair_material = "mcl_nether:netherite_ingot", }) mcl_armor.register_protection_enchantment({