Skip to content
Snippets Groups Projects
Forked from Illuna-Minetest / minetest_game
Source project has a limited visibility.
  • tenplus1's avatar
    6fdfd255
    Tnt: Various optimisations · 6fdfd255
    tenplus1 authored
    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.
    6fdfd255
    History
    Tnt: Various optimisations
    tenplus1 authored
    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.