mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-10 11:45:06 +00:00
Play no hit sound when potion arrow hits shooter
This commit is contained in:
parent
39023f1adf
commit
c45c0df118
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue