forked from minetest-mods/maptools
Run nodeupdate when using Admin Pickaxe.
This commit is contained in:
parent
30dc4564d2
commit
91bf2ad1c8
1
init.lua
1
init.lua
|
@ -527,6 +527,7 @@ minetest.register_on_punchnode(function(pos, node, puncher)
|
||||||
and minetest.get_node(pos).name ~= "air" then
|
and minetest.get_node(pos).name ~= "air" then
|
||||||
minetest.log("action", puncher:get_player_name() .. " digs " .. minetest.get_node(pos).name .. " at " .. minetest.pos_to_string(pos) .. " using an Admin Pickaxe.")
|
minetest.log("action", puncher:get_player_name() .. " digs " .. minetest.get_node(pos).name .. " at " .. minetest.pos_to_string(pos) .. " using an Admin Pickaxe.")
|
||||||
minetest.remove_node(pos) -- The node is removed directly, which means it even works on non-empty containers and group-less nodes.
|
minetest.remove_node(pos) -- The node is removed directly, which means it even works on non-empty containers and group-less nodes.
|
||||||
|
nodeupdate(pos) -- Run node update actions like falling nodes.
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user