mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-16 15:30:30 +01:00
[item_drop] Use default handle_node_drops for fake players
This commit is contained in:
parent
b52771ca80
commit
5b54007099
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user