forked from Mirrorlandia_minetest/mod-sneeker
Use "player_damage" sound from default if available
This commit is contained in:
parent
8e32772287
commit
22e81d5d27
@ -1,8 +1,9 @@
|
||||
|
||||
local sounds_enabled = core.get_modpath("sounds") ~= nil
|
||||
local hit_sound
|
||||
|
||||
if sounds_enabled then
|
||||
if core.get_modpath("default") then
|
||||
hit_sound = "player_damage"
|
||||
elseif core.get_modpath("sounds") then
|
||||
hit_sound = "sounds_entity_hit"
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user