mirror of
https://github.com/mt-mods/xcompat.git
synced 2024-12-22 17:10:18 +01:00
drop sound_api global legacy support as not known to be used (#2)
* drop sound_api support as not known to be used * update .luacheckrc and move some globals over to read * move one global back in .luacheckrc
This commit is contained in:
parent
7dfc17139f
commit
1860fa44b6
@ -4,9 +4,7 @@ allow_defined_top = true
|
|||||||
exclude_files = {".luacheckrc"}
|
exclude_files = {".luacheckrc"}
|
||||||
|
|
||||||
globals = {
|
globals = {
|
||||||
"minetest", "sound_api", "xcompat", "default",
|
"minetest", "xcompat",
|
||||||
"mcl_sounds", "ks_sounds", "nodes_nature", "fl_stone",
|
|
||||||
"fl_topsoil", "fl_trees", "hades_sounds", "rp_sounds",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
read_globals = {
|
read_globals = {
|
||||||
@ -20,5 +18,5 @@ read_globals = {
|
|||||||
"vector", "ItemStack", "dump", "DIR_DELIM", "VoxelArea", "Settings", "PcgRandom", "VoxelManip", "PseudoRandom",
|
"vector", "ItemStack", "dump", "DIR_DELIM", "VoxelArea", "Settings", "PcgRandom", "VoxelManip", "PseudoRandom",
|
||||||
|
|
||||||
--mod produced
|
--mod produced
|
||||||
"fl_dyes", "fl_hand", "fl_tools", "mobkit", "fl_tnt", "i3",
|
"default", "mcl_sounds", "ks_sounds", "nodes_nature", "fl_stone", "fl_topsoil", "fl_trees", "hades_sounds", "rp_sounds",
|
||||||
}
|
}
|
3
init.lua
3
init.lua
@ -5,9 +5,6 @@ xcompat = {
|
|||||||
materials = dofile(modpath .. "/src/materials.lua"),
|
materials = dofile(modpath .. "/src/materials.lua"),
|
||||||
}
|
}
|
||||||
|
|
||||||
--this exists for legacy compat reasons
|
|
||||||
sound_api = xcompat.sounds -- luacheck: ignore
|
|
||||||
|
|
||||||
local function validate_sound(key)
|
local function validate_sound(key)
|
||||||
if key and xcompat.sounds[key] then
|
if key and xcompat.sounds[key] then
|
||||||
return true
|
return true
|
||||||
|
Loading…
Reference in New Issue
Block a user