Skip to content

Commit

Permalink
drop sound_api global legacy support as not known to be used (#2)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
wsor4035 authored Feb 25, 2024
1 parent 7dfc171 commit 1860fa4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 2 additions & 4 deletions .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ allow_defined_top = true
exclude_files = {".luacheckrc"}

globals = {
"minetest", "sound_api", "xcompat", "default",
"mcl_sounds", "ks_sounds", "nodes_nature", "fl_stone",
"fl_topsoil", "fl_trees", "hades_sounds", "rp_sounds",
"minetest", "xcompat",
}

read_globals = {
Expand All @@ -20,5 +18,5 @@ read_globals = {
"vector", "ItemStack", "dump", "DIR_DELIM", "VoxelArea", "Settings", "PcgRandom", "VoxelManip", "PseudoRandom",

--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 changes: 0 additions & 3 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ xcompat = {
materials = dofile(modpath .. "/src/materials.lua"),
}

--this exists for legacy compat reasons
sound_api = xcompat.sounds -- luacheck: ignore

local function validate_sound(key)
if key and xcompat.sounds[key] then
return true
Expand Down

0 comments on commit 1860fa4

Please sign in to comment.