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_hydroturbine/init.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mesecons_hydroturbine') diff --git a/mesecons_hydroturbine/init.lua b/mesecons_hydroturbine/init.lua index 409da75..53dedac 100644 --- a/mesecons_hydroturbine/init.lua +++ b/mesecons_hydroturbine/init.lua @@ -24,7 +24,8 @@ minetest.register_node("mesecons_hydroturbine:hydro_turbine_off", { sounds = default.node_sound_stone_defaults(), mesecons = {receptor = { state = mesecon.state.off - }} + }}, + on_blast = mesecon.on_blastnode, }) minetest.register_node("mesecons_hydroturbine:hydro_turbine_on", { @@ -51,7 +52,8 @@ minetest.register_node("mesecons_hydroturbine:hydro_turbine_on", { sounds = default.node_sound_stone_defaults(), mesecons = {receptor = { state = mesecon.state.on - }} + }}, + on_blast = mesecon.on_blastnode, }) -- cgit v1.2.3