@@ -176,10 +176,10 @@ function doors.door_toggle(pos, node, clicker)
176176
177177 if state % 2 == 0 then
178178 minetest .sound_play (def .door .sounds [1 ],
179- {pos = pos , gain = 0.3 , max_hear_distance = 10 })
179+ {pos = pos , gain = 0.3 , max_hear_distance = 10 }, true )
180180 else
181181 minetest .sound_play (def .door .sounds [2 ],
182- {pos = pos , gain = 0.3 , max_hear_distance = 10 })
182+ {pos = pos , gain = 0.3 , max_hear_distance = 10 }, true )
183183 end
184184
185185 minetest .swap_node (pos , {
@@ -340,7 +340,7 @@ function doors.register(name, def)
340340 itemstack :take_item ()
341341 end
342342
343- minetest .sound_play (def .sounds .place , {pos = pos })
343+ minetest .sound_play (def .sounds .place , {pos = pos }, true )
344344
345345 on_place_node (pos , minetest .get_node (pos ),
346346 placer , node , itemstack , pointed_thing )
@@ -550,12 +550,12 @@ function doors.trapdoor_toggle(pos, node, clicker)
550550
551551 if string.sub (node .name , - 5 ) == " _open" then
552552 minetest .sound_play (def .sound_close ,
553- {pos = pos , gain = 0.3 , max_hear_distance = 10 })
553+ {pos = pos , gain = 0.3 , max_hear_distance = 10 }, true )
554554 minetest .swap_node (pos , {name = string.sub (node .name , 1 ,
555555 string.len (node .name ) - 5 ), param1 = node .param1 , param2 = node .param2 })
556556 else
557557 minetest .sound_play (def .sound_open ,
558- {pos = pos , gain = 0.3 , max_hear_distance = 10 })
558+ {pos = pos , gain = 0.3 , max_hear_distance = 10 }, true )
559559 minetest .swap_node (pos , {name = node .name .. " _open" ,
560560 param1 = node .param1 , param2 = node .param2 })
561561 end
@@ -744,7 +744,7 @@ function doors.register_fencegate(name, def)
744744 local node_def = minetest .registered_nodes [node .name ]
745745 minetest .swap_node (pos , {name = node_def .gate , param2 = node .param2 })
746746 minetest .sound_play (node_def .sound , {pos = pos , gain = 0.3 ,
747- max_hear_distance = 8 })
747+ max_hear_distance = 8 }, true )
748748 return itemstack
749749 end ,
750750 selection_box = {
0 commit comments