From 5b54007099f4b76d63d315526a02fdaaf3da4c05 Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Sun, 1 Nov 2015 12:34:41 +0100 Subject: [PATCH] [item_drop] Use default handle_node_drops for fake players --- mods/item_drop/init.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mods/item_drop/init.lua b/mods/item_drop/init.lua index 167efe3b..fd3b07e8 100755 --- a/mods/item_drop/init.lua +++ b/mods/item_drop/init.lua @@ -110,7 +110,12 @@ local function tick() end end +local mt_handle_node_drops = minetest.handle_node_drops function minetest.handle_node_drops(pos, drops, digger) + if digger and digger.is_fake_player then -- Pipeworks' wielders + mt_handle_node_drops(pos, drops, digger) + return + end local inv if creative_mode and digger and digger:is_player() then inv = digger:get_inventory()