projects
/
oweals
/
minetest_game.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8817d1c
)
TNT's tnt:boom cleanup (#1868)
author
tenplus1
<tenplus1@users.noreply.github.com>
Sun, 13 Aug 2017 11:46:30 +0000
(12:46 +0100)
committer
SmallJoker
<SmallJoker@users.noreply.github.com>
Sun, 13 Aug 2017 11:46:30 +0000
(13:46 +0200)
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
patch
|
blob
|
history
diff --git
a/mods/tnt/init.lua
b/mods/tnt/init.lua
index 606ab6afe9b7d3cfb753208faa7e85dbe9664f38..0326000b79cdf523f857d0f16d85794dcbe66909 100644
(file)
--- 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,
})