From 2b55dac7d2462a77d13001ee45b73820cb19f56b Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Wed, 4 Nov 2020 11:29:44 +0100 Subject: [PATCH] Fixed Curse of Binding bypass in rightclick handler --- mods/CORE/mcl_enchanting/enchantments.lua | 2 +- mods/ITEMS/mcl_armor/armor.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/CORE/mcl_enchanting/enchantments.lua b/mods/CORE/mcl_enchanting/enchantments.lua index b1ac63561b..f6a37f482c 100644 --- a/mods/CORE/mcl_enchanting/enchantments.lua +++ b/mods/CORE/mcl_enchanting/enchantments.lua @@ -431,7 +431,7 @@ mcl_enchanting.enchantments.soul_speed = { disallow = {non_combat_armor = true}, incompatible = {frost_walker = true}, weight = 2, - description = "Incerases walking speed on soul sand.", + description = "Increases walking speed on soul sand.", curse = false, on_enchant = function() end, requires_tool = false, diff --git a/mods/ITEMS/mcl_armor/armor.lua b/mods/ITEMS/mcl_armor/armor.lua index ee0f95ceff..d00348b139 100644 --- a/mods/ITEMS/mcl_armor/armor.lua +++ b/mods/ITEMS/mcl_armor/armor.lua @@ -75,7 +75,7 @@ function armor.on_armor_use(itemstack, user, pointed_thing) armor:update_inventory(user) armor:play_equip_sound(itemstack_single, user) itemstack:take_item() - elseif itemstack:get_count() <= 1 then + elseif itemstack:get_count() <= 1 and not mcl_enchanting.has_enchantment(itemstack_slot, "curse_of_binding") then armor_inv:set_stack("armor", slot, itemstack_single) player_inv:set_stack("armor", slot, itemstack_single) armor:set_player_armor(user)