fixed bug in exec_apply_effects when taking items

This commit is contained in:
Sokomine 2022-05-09 17:42:07 +02:00
parent 4949afcd00
commit 86c87b0c45

View File

@ -274,7 +274,7 @@ yl_speak_up.execute_effect = function(player, n_id, o_id, r)
local npc_inv = minetest.get_inventory({type="detached",
name="yl_speak_up_npc_"..tostring(n_id)})
-- shall we take all or just as much as the NPC wants?
local stack_wanted = ItemStack(p.p_value)
local stack_wanted = ItemStack(r.r_value)
local amount = 0
if(r.r_value == "take_all") then
amount = stack_got:get_count()