2016-06-26 08:12:40 -07:00
|
|
|
unused_args = false
|
|
|
|
allow_defined_top = true
|
|
|
|
|
|
|
|
read_globals = {
|
|
|
|
"DIR_DELIM",
|
2019-12-29 03:28:30 -08:00
|
|
|
"minetest",
|
2016-06-26 08:12:40 -07:00
|
|
|
"dump",
|
2016-11-21 20:45:31 -08:00
|
|
|
"vector",
|
2016-06-26 08:12:40 -07:00
|
|
|
"VoxelManip", "VoxelArea",
|
2017-10-27 04:34:41 -07:00
|
|
|
"PseudoRandom", "PcgRandom",
|
|
|
|
"ItemStack",
|
2017-04-11 07:28:26 -07:00
|
|
|
"Settings",
|
2017-03-10 11:48:44 -08:00
|
|
|
"unpack",
|
2017-10-27 04:34:41 -07:00
|
|
|
-- Silence errors about custom table methods.
|
2019-10-23 19:47:28 -07:00
|
|
|
table = { fields = { "copy", "indexof" } },
|
|
|
|
-- Silence warnings about accessing undefined fields of global 'math'
|
|
|
|
math = { fields = { "sign" } }
|
2016-06-26 08:12:40 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
-- Overwrites minetest.handle_node_drops
|
|
|
|
files["mods/creative/init.lua"].globals = { "minetest" }
|
|
|
|
|
2020-03-16 14:29:44 -07:00
|
|
|
-- Overwrites minetest.calculate_knockback
|
|
|
|
files["mods/player_api/api.lua"].globals = { "minetest" }
|
|
|
|
|
2016-06-26 08:12:40 -07:00
|
|
|
-- Don't report on legacy definitions of globals.
|
|
|
|
files["mods/default/legacy.lua"].global = false
|