From c1eccba24760e0b80666dd8d1e56b5fe7f3a5b28 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Sat, 1 Aug 2020 16:10:14 +0300 Subject: Make sounds ephemeral (#521) The handles were never used anyway --- mesecons_button/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mesecons_button') diff --git a/mesecons_button/init.lua b/mesecons_button/init.lua index 8764fbc..d7b84b6 100644 --- a/mesecons_button/init.lua +++ b/mesecons_button/init.lua @@ -8,7 +8,7 @@ mesecon.button_turnoff = function (pos) return end minetest.swap_node(pos, {name = "mesecons_button:button_off", param2 = node.param2}) - minetest.sound_play("mesecons_button_pop", {pos = pos}) + minetest.sound_play("mesecons_button_pop", { pos = pos }, true) local rules = mesecon.rules.buttonlike_get(node) mesecon.receptor_off(pos, rules) end @@ -46,7 +46,7 @@ minetest.register_node("mesecons_button:button_off", { on_rightclick = function (pos, node) minetest.swap_node(pos, {name = "mesecons_button:button_on", param2=node.param2}) mesecon.receptor_on(pos, mesecon.rules.buttonlike_get(node)) - minetest.sound_play("mesecons_button_push", {pos=pos}) + minetest.sound_play("mesecons_button_push", { pos = pos }, true) minetest.get_node_timer(pos):start(1) end, sounds = default.node_sound_stone_defaults(), -- cgit v1.2.3