From 87bd12dd0facb4c58f8643b10f98a27dd112b21a Mon Sep 17 00:00:00 2001 From: unknown <24964441+wsor4035@users.noreply.github.com> Date: Tue, 18 Jan 2022 23:02:19 -0500 Subject: [PATCH] fix global leak --- .luacheckrc | 4 ---- init.lua | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.luacheckrc b/.luacheckrc index 5b3d0e4..dc03d95 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -1,7 +1,3 @@ -globals = { - "sound_api", -} - read_globals = { "minetest", "mcl_sounds", "default", "ks_sounds", "nodes_nature", "fl_stone", "fl_topsoil", "fl_trees", } \ No newline at end of file diff --git a/init.lua b/init.lua index 122b4c1..9dc6b24 100644 --- a/init.lua +++ b/init.lua @@ -1,4 +1,4 @@ -sound_api = {} +local sound_api = {} --convert some games for api usage