From c45c0df118ceaa26c901c2b2aec122a643f3866b Mon Sep 17 00:00:00 2001 From: Nils Dagsson Moskopp Date: Mon, 12 Jul 2021 04:59:53 +0200 Subject: [PATCH] Play no hit sound when potion arrow hits shooter --- mods/ITEMS/mcl_potions/tipped_arrow.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_potions/tipped_arrow.lua b/mods/ITEMS/mcl_potions/tipped_arrow.lua index ca5fc7f3..f71974b8 100644 --- a/mods/ITEMS/mcl_potions/tipped_arrow.lua +++ b/mods/ITEMS/mcl_potions/tipped_arrow.lua @@ -258,7 +258,7 @@ function mcl_potions.register_arrow(name, desc, color, def) end if is_player then - if self._shooter and self._shooter:is_player() then + if self._shooter and self._shooter:is_player() and obj ~= self._shooter then -- “Ding” sound for hitting another player minetest.sound_play({name="mcl_bows_hit_player", gain=0.1}, {to_player=self._shooter:get_player_name()}, true) end