Use "player_damage" sound from default if available

This commit is contained in:
Jordan Irwin 2021-07-20 14:43:27 -07:00
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