From: Auke Kok Date: Sat, 19 Mar 2016 06:31:10 +0000 (-0700) Subject: TNT: Chain reaction X-Git-Tag: 0.4.14~42 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3ddff2fbea63aeaa535d7e59254554dc65adb314;p=oweals%2Fminetest_game.git TNT: Chain reaction With the new high res timer, we can make TNT much better create chain reactions. This does exactly that. --- diff --git a/mods/tnt/init.lua b/mods/tnt/init.lua index 289797ce..4010f987 100644 --- a/mods/tnt/init.lua +++ b/mods/tnt/init.lua @@ -428,7 +428,9 @@ function tnt.register_tnt(def) end end, on_blast = function(pos, intensity) - tnt.burn(pos) + minetest.after(0.1, function() + tnt.boom(pos, def) + end) end, mesecons = {effector = {action_on =