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