From b6ef71c92e8d5f2e27e94192c4da00af2e3b9a35 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sun, 13 Aug 2017 12:46:30 +0100 Subject: [PATCH] TNT's tnt:boom cleanup (#1868) The tnt:boom node doesn't actually need the on_construct and on_timer functions to remove the node after 0.4 seconds as the tnt_explode function already does this beforehand. --- mods/tnt/init.lua | 6 ------ 1 file changed, 6 deletions(-) diff --git a/mods/tnt/init.lua b/mods/tnt/init.lua index 606ab6af..0326000b 100644 --- a/mods/tnt/init.lua +++ b/mods/tnt/init.lua @@ -405,12 +405,6 @@ minetest.register_node("tnt:boom", { walkable = false, drop = "", groups = {dig_immediate = 3}, - on_construct = function(pos) - minetest.get_node_timer(pos):start(0.4) - end, - on_timer = function(pos, elapsed) - minetest.remove_node(pos) - end, -- unaffected by explosions on_blast = function() end, })