Skip to content
Snippets Groups Projects
Commit 654b553b authored by kilbith's avatar kilbith
Browse files

Cauldron: stop sound on destruct

parent 4fc78597
No related branches found
No related tags found
No related merge requests found
......@@ -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
})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment