mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-01-11 09:39:34 +01:00
fix api change in enchanting
This commit is contained in:
parent
379972ea11
commit
caacb378de
1 changed files with 1 additions and 1 deletions
|
@ -409,7 +409,7 @@ local init_trades = function(self, inv)
|
|||
local offered_stack = ItemStack({name = offered_item, count = offered_count})
|
||||
if mcl_enchanting.is_enchanted(offered_item) then
|
||||
if mcl_enchanting.is_book(offered_item) then
|
||||
offered_stack = mcl_enchanting.get_uniform_randomly_enchanted_book({"soul_speed"})
|
||||
offered_stack = mcl_enchanting.enchant_uniform_randomly(offered_stack, {"soul_speed"})
|
||||
else
|
||||
mcl_enchanting.enchant_randomly(offered_stack, math.random(5, 19), false, false, true)
|
||||
mcl_enchanting.unload_enchantments(offered_stack)
|
||||
|
|
Loading…
Reference in a new issue