From 22e81d5d27efb41ff6cb75daabb0fc4a42633287 Mon Sep 17 00:00:00 2001 From: Jordan Irwin Date: Tue, 20 Jul 2021 14:43:27 -0700 Subject: [PATCH] Use "player_damage" sound from default if available --- entity.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/entity.lua b/entity.lua index 22ec44e..645ea69 100644 --- a/entity.lua +++ b/entity.lua @@ -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