Fixed Curse of Binding bypass in rightclick handler

This commit is contained in:
Elias Fleckenstein 2020-11-04 11:29:44 +01:00
parent 7c28bf8507
commit 2b55dac7d2
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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)