mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-04 23:31:05 +01:00
fix wrong argument to sound_play
This commit is contained in:
parent
bf23c61e34
commit
0b157c953f
1 changed files with 1 additions and 1 deletions
|
@ -284,7 +284,7 @@ function mcl_potions.register_arrow(name, desc, color, def)
|
|||
if is_player then
|
||||
if self._shooter and self._shooter:is_player() then
|
||||
-- “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
|
||||
|
||||
|
|
Loading…
Reference in a new issue