avoid an undeclared global check

This commit is contained in:
FaceDeer 2022-08-13 23:56:22 -06:00
parent 6158a5d4dc
commit dbcf133d56
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ local fourtyfivedegrees = math.pi/4
local sixtydegrees = math.pi/3
local default_sounds
if default and default.node_sound_stone_defaults then
if minetest.get_modpath("default") then
default_sounds = default.node_sound_stone_defaults()
end