mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 12:31:05 +01:00
Fixed Curse of Binding bypass in rightclick handler
This commit is contained in:
parent
7c28bf8507
commit
2b55dac7d2
2 changed files with 2 additions and 2 deletions
|
@ -431,7 +431,7 @@ mcl_enchanting.enchantments.soul_speed = {
|
||||||
disallow = {non_combat_armor = true},
|
disallow = {non_combat_armor = true},
|
||||||
incompatible = {frost_walker = true},
|
incompatible = {frost_walker = true},
|
||||||
weight = 2,
|
weight = 2,
|
||||||
description = "Incerases walking speed on soul sand.",
|
description = "Increases walking speed on soul sand.",
|
||||||
curse = false,
|
curse = false,
|
||||||
on_enchant = function() end,
|
on_enchant = function() end,
|
||||||
requires_tool = false,
|
requires_tool = false,
|
||||||
|
|
|
@ -75,7 +75,7 @@ function armor.on_armor_use(itemstack, user, pointed_thing)
|
||||||
armor:update_inventory(user)
|
armor:update_inventory(user)
|
||||||
armor:play_equip_sound(itemstack_single, user)
|
armor:play_equip_sound(itemstack_single, user)
|
||||||
itemstack:take_item()
|
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)
|
armor_inv:set_stack("armor", slot, itemstack_single)
|
||||||
player_inv:set_stack("armor", slot, itemstack_single)
|
player_inv:set_stack("armor", slot, itemstack_single)
|
||||||
armor:set_player_armor(user)
|
armor:set_player_armor(user)
|
||||||
|
|
Loading…
Reference in a new issue