forked from mtcontrib/3d_armor
		
	Shields: Fix positional sound effects
This commit is contained in:
		@@ -13,9 +13,8 @@ local function play_sound_effect(player, name)
 | 
			
		||||
	if player then
 | 
			
		||||
		local pos = player:getpos()
 | 
			
		||||
		if pos then
 | 
			
		||||
			minetest.sound_play({
 | 
			
		||||
			minetest.sound_play(name, {
 | 
			
		||||
				pos = pos,
 | 
			
		||||
				name = name,
 | 
			
		||||
				max_hear_distance = 10,
 | 
			
		||||
				gain = 0.5,
 | 
			
		||||
			})
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user