From 905260c8db2d7d4844e3955fa38a79da233b3ab7 Mon Sep 17 00:00:00 2001 From: DS Date: Sat, 7 Oct 2017 00:44:49 +0200 Subject: Handle blasts (#356) --- mesecons_torch/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mesecons_torch') diff --git a/mesecons_torch/init.lua b/mesecons_torch/init.lua index 8b1632b..de16224 100644 --- a/mesecons_torch/init.lua +++ b/mesecons_torch/init.lua @@ -62,7 +62,8 @@ minetest.register_node("mesecons_torch:mesecon_torch_off", { mesecons = {receptor = { state = mesecon.state.off, rules = torch_get_output_rules - }} + }}, + on_blast = mesecon.on_blastnode, }) minetest.register_node("mesecons_torch:mesecon_torch_on", { @@ -82,6 +83,7 @@ minetest.register_node("mesecons_torch:mesecon_torch_on", { state = mesecon.state.on, rules = torch_get_output_rules }}, + on_blast = mesecon.on_blastnode, }) minetest.register_abm({ -- cgit v1.2.3