From c1637b1975b304c16118dfc5d1daa5f6bdb6f09a Mon Sep 17 00:00:00 2001 From: sys4 Date: Fri, 10 May 2019 11:54:20 +0200 Subject: [PATCH] =?UTF-8?q?Corrige=20crash=20=C3=A0=20cause=20d'un=20mauva?= =?UTF-8?q?is=20appel=20de=20fonction?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 2e3f9eb..2d74adc 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