From 654b553bed071cfe85fbf9a52ae9003d63898a8e Mon Sep 17 00:00:00 2001 From: kilbith Date: Thu, 14 Apr 2016 00:07:38 +0200 Subject: [PATCH] Cauldron: stop sound on destruct --- cooking.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cooking.lua b/cooking.lua index 20e48a5..64c8f6c 100644 --- a/cooking.lua +++ b/cooking.lua @@ -176,6 +176,9 @@ xdecor.register("cauldron_boiling", { collision_box = xdecor.pixelbox(16, cauldron.cbox), on_rightclick = cauldron.filling, on_construct = cauldron.boiling_construct, + on_destruct = function(pos) + cauldron.stop_sound(pos) + end, on_timer = cauldron.boiling_timer }) @@ -189,6 +192,9 @@ xdecor.register("cauldron_soup", { animation={type="vertical_frames", length=3.0}}, "xdecor_cauldron_sides.png"}, collision_box = xdecor.pixelbox(16, cauldron.cbox), - on_rightclick = cauldron.take_soup + on_rightclick = cauldron.take_soup, + on_destruct = function(pos) + cauldron.stop_sound(pos) + end })