mirror of
https://github.com/minetest/minetest_game.git
synced 2024-11-15 14:30:18 +01:00
6fdfd2554c
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.
18 lines
411 B
Lua
18 lines
411 B
Lua
unused_args = false
|
|
allow_defined_top = true
|
|
|
|
read_globals = {
|
|
"DIR_DELIM",
|
|
"minetest", "core",
|
|
"dump",
|
|
"vector", "nodeupdate", "nodeupdate_single",
|
|
"VoxelManip", "VoxelArea",
|
|
"PseudoRandom", "ItemStack",
|
|
}
|
|
|
|
-- Overwrites minetest.handle_node_drops
|
|
files["mods/creative/init.lua"].globals = { "minetest" }
|
|
|
|
-- Don't report on legacy definitions of globals.
|
|
files["mods/default/legacy.lua"].global = false
|