From 1860fa44b667fc65fb7c830848a1d08f58c77cc4 Mon Sep 17 00:00:00 2001 From: wsor4035 <24964441+wsor4035@users.noreply.github.com> Date: Sun, 25 Feb 2024 12:03:21 -0500 Subject: [PATCH] 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 --- .luacheckrc | 6 ++---- init.lua | 3 --- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.luacheckrc b/.luacheckrc index 332f00a..e7d839d 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -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 = { @@ -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", } \ No newline at end of file diff --git a/init.lua b/init.lua index ea3483e..8c7dd3f 100644 --- a/init.lua +++ b/init.lua @@ -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