Tnt: Various optimisations
authortenplus1 <tenplus1@users.noreply.github.com>
Wed, 5 Oct 2016 15:15:49 +0000 (16:15 +0100)
committerparamat <mat.gregory@virginmedia.com>
Mon, 10 Oct 2016 02:16:41 +0000 (03:16 +0100)
commit6fdfd2554c23535530a5750d3b362e6399b00b55
tree1a66cfef05c0b2ef8378c9c35f91c9c17d5bbba1
parent53179b8d1035399d51502e461612a71c6f994bb5
Tnt: Various optimisations

Pass nodename to tnt.burn function where possible to reduce
use of 'get_node'.
Change 'ipairs' to 'pairs'.
Use 'nodeupdate_single(pos)' instead of 'nodeupdate(pos)' to
avoid every node triggering recursion, the loop itself takes
the place of recursion and works upwards through horizontal
planes as required.
.luacheckrc
game_api.txt
mods/tnt/init.lua