diff options
Diffstat (limited to 'mesecons_hydroturbine')
-rw-r--r-- | mesecons_hydroturbine/init.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mesecons_hydroturbine/init.lua b/mesecons_hydroturbine/init.lua index 409da75..7175c58 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, }) @@ -70,7 +72,6 @@ nodenames = {"mesecons_hydroturbine:hydro_turbine_off"}, local waterpos={x=pos.x, y=pos.y+1, z=pos.z} if is_flowing_water(waterpos) then minetest.set_node(pos, {name="mesecons_hydroturbine:hydro_turbine_on"}) - nodeupdate(pos) mesecon.receptor_on(pos) end end, @@ -84,7 +85,6 @@ nodenames = {"mesecons_hydroturbine:hydro_turbine_on"}, local waterpos={x=pos.x, y=pos.y+1, z=pos.z} if not is_flowing_water(waterpos) then minetest.set_node(pos, {name="mesecons_hydroturbine:hydro_turbine_off"}) - nodeupdate(pos) mesecon.receptor_off(pos) end end, |