From 354507f98f3a9e9262eef65f995904afa68bbd90 Mon Sep 17 00:00:00 2001 From: Jat15 Date: Mon, 23 Dec 2013 01:31:21 +0100 Subject: [PATCH] Fix max_hear_distance for sound toilet! --- furniture_bathroom.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/furniture_bathroom.lua b/furniture_bathroom.lua index 80e4138f..7d2eda05 100644 --- a/furniture_bathroom.lua +++ b/furniture_bathroom.lua @@ -1,4 +1,3 @@ - local S = homedecor.gettext minetest.register_node("homedecor:toilet", { @@ -65,7 +64,7 @@ minetest.register_node("homedecor:toilet_open", { on_punch = function (pos, node, puncher) node.name = "homedecor:toilet" minetest.set_node(pos, node) - minetest.sound_play({name="homedecor_toilet_flush", pos=pos,}) + minetest.sound_play({name="homedecor_toilet_flush", pos=pos, max_hear_distance=5,}) end, })