1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-16 23:40:31 +01:00

[item_drop] Use default handle_node_drops for fake players

This commit is contained in:
LeMagnesium 2015-11-01 12:34:41 +01:00
parent b52771ca80
commit 5b54007099

View File

@ -110,7 +110,12 @@ local function tick()
end end
end end
local mt_handle_node_drops = minetest.handle_node_drops
function minetest.handle_node_drops(pos, drops, digger) 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 local inv
if creative_mode and digger and digger:is_player() then if creative_mode and digger and digger:is_player() then
inv = digger:get_inventory() inv = digger:get_inventory()