diff --git a/porta.lua b/porta.lua index da48253..742bc76 100644 --- a/porta.lua +++ b/porta.lua @@ -51,10 +51,11 @@ for i in ipairs(Porta_list) do minetest.set_node(pos, node) minetest.sound_play("summer_porta_ch", { - to_player = "", - gain = 0.1, -}) - + to_player = "", + gain = 0.1, + pos = pos, + max_hear_distance = 16, + }) end, }) @@ -88,9 +89,11 @@ minetest.register_node("summer:porta_"..colour.."_ch", { node.name = "summer:porta_"..colour.."" minetest.set_node(pos, node) minetest.sound_play("summer_porta_op", { - to_player = "", - gain = 0.1, -}) + to_player = "", + gain = 0.1, + pos = pos, + max_hear_distance = 16, + }) end, })