forked from Sokomine/yl_speak_up
fixed bug in exec_apply_effects when taking items
This commit is contained in:
parent
4949afcd00
commit
86c87b0c45
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user