1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-06-28 12:46:02 +02:00

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.
This commit is contained in:
tenplus1
2016-10-05 16:15:49 +01:00
committed by paramat
parent 53179b8d10
commit 6fdfd2554c
3 changed files with 19 additions and 16 deletions

View File

@ -5,7 +5,7 @@ read_globals = {
"DIR_DELIM",
"minetest", "core",
"dump",
"vector", "nodeupdate",
"vector", "nodeupdate", "nodeupdate_single",
"VoxelManip", "VoxelArea",
"PseudoRandom", "ItemStack",
}