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_lamp/init.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mesecons_lamp') diff --git a/mesecons_lamp/init.lua b/mesecons_lamp/init.lua index 6f38b27..15c89ff 100644 --- a/mesecons_lamp/init.lua +++ b/mesecons_lamp/init.lua @@ -27,7 +27,8 @@ minetest.register_node("mesecons_lamp:lamp_on", { action_off = function (pos, node) minetest.swap_node(pos, {name = "mesecons_lamp:lamp_off", param2 = node.param2}) end - }} + }}, + on_blast = mesecon.on_blastnode, }) minetest.register_node("mesecons_lamp:lamp_off", { @@ -48,7 +49,8 @@ minetest.register_node("mesecons_lamp:lamp_off", { action_on = function (pos, node) minetest.swap_node(pos, {name = "mesecons_lamp:lamp_on", param2 = node.param2}) end - }} + }}, + on_blast = mesecon.on_blastnode, }) minetest.register_craft({ -- cgit v1.2.3