From 7459fc338901767cd335c5e24306df84ec0bc657 Mon Sep 17 00:00:00 2001 From: Thomas--S Date: Sun, 22 Jul 2018 13:22:41 +0200 Subject: [PATCH] Replace old nodeupdate() with new minetest.check_for_falling() (#7) --- tools.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools.lua b/tools.lua index e42d2f5..b2f5a8d 100644 --- a/tools.lua +++ b/tools.lua @@ -56,6 +56,6 @@ minetest.register_on_punchnode(function(pos, node, puncher) 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.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. + minetest.check_for_falling(pos) -- Run node update actions like falling nodes. end end)