From d3aab548e55bf17fa6245e0a980e49617ac095dd Mon Sep 17 00:00:00 2001 From: Aleksandr Avdeev Date: Mon, 25 Nov 2024 11:32:19 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20=D0=BC=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=D0=B0=D0=BB=D1=8C?= =?UTF-8?q?=D0=BD=D1=83=D1=8E=20=D0=B4=D0=B8=D1=81=D1=82=D0=B0=D0=BD=D1=86?= =?UTF-8?q?=D0=B8=D1=8E=20=D0=BF=D1=80=D0=BE=D0=B8=D0=B3=D1=80=D1=8B=D0=B2?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D1=8F=20=D0=B7=D0=B2=D1=83=D0=BA=D0=BE=D0=B2?= =?UTF-8?q?=20=D0=B4=D0=B2=D0=B5=D1=80=D0=B5=D0=B9=20=D0=BE=D1=82=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=B7=D0=B8=D1=86=D0=B8=D0=B8=20=D1=83=D1=81=D1=82=D0=B0?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- porta.lua | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) 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, })