Skip to content
Snippets Groups Projects
Commit c5e97867 authored by tenplus1's avatar tenplus1 Committed by SmallJoker
Browse files

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.
parent 8817d1c6
No related branches found
No related tags found
No related merge requests found
......@@ -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,
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment