place_node, dig_node and punch_node; an in-game tester tool; remove old code
This commit is contained in:
parent
28d4194f24
commit
3519373773
|
@ -250,12 +250,14 @@ function minetest.node_dig(pos, node, digger)
|
||||||
wielded:add_wear(dp.wear)
|
wielded:add_wear(dp.wear)
|
||||||
digger:set_wielded_item(wielded)
|
digger:set_wielded_item(wielded)
|
||||||
|
|
||||||
-- Add dropped items
|
-- Add dropped items to object's inventory
|
||||||
|
if digger:get_inventory() then
|
||||||
local _, dropped_item
|
local _, dropped_item
|
||||||
for _, dropped_item in ipairs(drops) do
|
for _, dropped_item in ipairs(drops) do
|
||||||
digger:get_inventory():add_item("main", dropped_item)
|
digger:get_inventory():add_item("main", dropped_item)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
local oldnode = nil
|
local oldnode = nil
|
||||||
local oldmetadata = nil
|
local oldmetadata = nil
|
||||||
|
|
Loading…
Reference in New Issue