Fix undeclared global warning

This commit is contained in:
cora 2024-05-01 02:26:44 +02:00
parent ed6e00b5c0
commit 9f108ba918

View File

@ -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