1
0
Fork 0

Fix arrow hit being heard globally

This commit is contained in:
Wuzzy 2020-12-03 12:59:57 +01:00
parent 7e8c3aebd5
commit 2638d91785
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ ARROW_ENTITY.on_step = function(self, dtime)
if is_player then if is_player then
if self._shooter and self._shooter:is_player() then if self._shooter and self._shooter:is_player() then
-- “Ding” sound for hitting another player -- “Ding” sound for hitting another player
minetest.sound_play({name="mcl_bows_hit_player", gain=0.1}, {to_player=self._shooter}, true) minetest.sound_play({name="mcl_bows_hit_player", gain=0.1}, {to_player=self._shooter:get_player_name()}, true)
end end
end end