Fix crash due to a missing function

I accidentally wrote can_pickup instead of item_drop.can_pickup in a previous commit.
This commit is contained in:
HybridDog 2019-05-26 14:13:54 +02:00
parent 427117d786
commit 3a9a506011

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