1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-01-09 23:10:17 +01:00

TNT: Chain reaction

With the new high res timer, we can make TNT much better create chain
reactions. This does exactly that.
This commit is contained in:
Auke Kok 2016-03-18 23:31:10 -07:00 committed by paramat
parent eafd1ebc43
commit 3ddff2fbea

View File

@ -428,7 +428,9 @@ function tnt.register_tnt(def)
end end
end, end,
on_blast = function(pos, intensity) on_blast = function(pos, intensity)
tnt.burn(pos) minetest.after(0.1, function()
tnt.boom(pos, def)
end)
end, end,
mesecons = {effector = mesecons = {effector =
{action_on = {action_on =