From 9f108ba91855ce707e903df0dcfc4a7dd45a24e9 Mon Sep 17 00:00:00 2001 From: cora Date: Wed, 1 May 2024 02:26:44 +0200 Subject: [PATCH] Fix undeclared global warning --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 36f3c36..bc664c2 100644 --- a/init.lua +++ b/init.lua @@ -19,7 +19,7 @@ function mcla_music_api.register_on_song_complete(func) end -- compat with "music_api" -if not music then +if not minetest.global_exists("music") then music = {} music.register_track = mcla_music_api.register_song end