Skip to content

Commit

Permalink
TNT's tnt:boom cleanup (#1868)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tenplus1 authored and SmallJoker committed Aug 13, 2017
1 parent 8817d1c commit c5e9786
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions mods/tnt/init.lua
Expand Up @@ -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,
})
Expand Down

0 comments on commit c5e9786

Please sign in to comment.