From 52ccfa93656ce013a74b80736580e258ffb9f24e Mon Sep 17 00:00:00 2001 From: the-real-herowl Date: Tue, 24 Dec 2024 23:09:18 +0100 Subject: [PATCH] Make mending mend unbreaking items more (#4752) Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4752 --- mods/ITEMS/mcl_enchanting/enchantments.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/ITEMS/mcl_enchanting/enchantments.lua b/mods/ITEMS/mcl_enchanting/enchantments.lua index 6f547fd70..fefc4516c 100644 --- a/mods/ITEMS/mcl_enchanting/enchantments.lua +++ b/mods/ITEMS/mcl_enchanting/enchantments.lua @@ -474,6 +474,7 @@ mcl_experience.register_on_add_xp(function(player, xp) local can = final_candidates[math.random(#final_candidates)] local stack, list, index, wear = can.stack, can.list, can.index, can.wear local uses = mcl_util.calculate_durability(stack) + / (mcl_enchanting.get_enchantment(stack, "unbreaking") + 1) local multiplier = 2 * 65535 / uses local repair = xp * multiplier local new_wear = wear - repair