Play no hit sound when regular arrow hits shooter

master
Nils Dagsson Moskopp 2021-07-12 04:59:39 +02:00
parent 689054f904
commit 39023f1adf
No known key found for this signature in database
GPG Key ID: A3BC671C35191080
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ ARROW_ENTITY.on_step = function(self, dtime)
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