From 1dcd5551492e4b0e30c8201e73f4f4821c20f4cf Mon Sep 17 00:00:00 2001 From: Code-Sploit Date: Sat, 8 May 2021 16:53:46 +0000 Subject: [PATCH] Try 1 to fix the stupid changes to mcl_armor that caused non-upgradable diamond armor --- mods/ITEMS/mcl_armor/api.lua | 1 + mods/ITEMS/mcl_armor/register.lua | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_armor/api.lua b/mods/ITEMS/mcl_armor/api.lua index d58b5e666d..48e9b5e934 100644 --- a/mods/ITEMS/mcl_armor/api.lua +++ b/mods/ITEMS/mcl_armor/api.lua @@ -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 diff --git a/mods/ITEMS/mcl_armor/register.lua b/mods/ITEMS/mcl_armor/register.lua index ee7b86cc52..22636d0306 100644 --- a/mods/ITEMS/mcl_armor/register.lua +++ b/mods/ITEMS/mcl_armor/register.lua @@ -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",