From ba380a7631d45c3171da3a64343abea0b6de4cab Mon Sep 17 00:00:00 2001 From: Freeman Date: Fri, 1 Sep 2023 09:53:46 +0200 Subject: [PATCH] sounds check --- init.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/init.lua b/init.lua index d861c7c..9f83876 100644 --- a/init.lua +++ b/init.lua @@ -1,6 +1,15 @@ digilines = {} digilines.S = minetest.get_translator("digilines") +digilines.mtg = minetest.get_modpath("default") +digilines.mcl = minetest.get_modpath("mcl_core") + +-- sounds check +digilines.sounds = {} +if digilines.mtg then digilines.sounds = default end +if digilines.mcl then digilines.sounds = mcl_sounds end + + -- Backwards compatibility code. -- We define a proxy table whose methods can be called with the -- `foo:bar` notation, and it will redirect the call to the