Corrige crash à cause d'un mauvais appel de fonction

This commit is contained in:
Sys Quatre 2019-05-10 11:54:20 +02:00
parent e10486d2aa
commit c1637b1975
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ minetest.settings:get_bool("enable_item_pickup") ~= false then
local item = ItemStack(ent.itemstring)
if inv
and inv:room_for_item("main", item)
and can_pickup(ent, player) then
and item_drop.can_pickup(ent, player) then
collect_item(ent, object:get_pos(), player)
else
-- the acceleration will be reset by the object's on_step