From aef629f5b3faa06229cb7a10f3ed740d257535fa Mon Sep 17 00:00:00 2001 From: HybridDog Date: Sun, 26 May 2019 14:13:54 +0200 Subject: [PATCH] Fix crash due to a missing function I accidentally wrote can_pickup instead of item_drop.can_pickup in a previous commit. --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index e263ce5..da0bca6 100644 --- a/init.lua +++ b/init.lua @@ -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