TNT: Move timer start to on_create() for burning nodes.
authorAuke Kok <sofar@foo-projects.org>
Tue, 29 Mar 2016 14:39:46 +0000 (07:39 -0700)
committerparamat <mat.gregory@virginmedia.com>
Sat, 16 Apr 2016 18:27:16 +0000 (19:27 +0100)
commite6cef57661071a956d1c514f7a8acc97347b6b9f
treedffd3af6e33dccffcbd7acb10bd9742fef7dcac2
parent0736d30e33b9d04b43e01f129154374c72ba51a6
TNT: Move timer start to on_create() for burning nodes.

We add on_create() handlers for both burning TNT and burning
gunpowder. Because gunpowder will explode TNT in 1 second,
and not 4, we need to modify the 4 second timer after we
make the TNT burning. Other mods can now place burning TNT
that will by default explode after 4 seconds.
mods/tnt/init.lua