From 80883ad17ffbe0a4fba1d4f6eabdfa76798c09d8 Mon Sep 17 00:00:00 2001 From: Thomas--S Date: Wed, 6 Sep 2017 19:31:04 +0200 Subject: [PATCH] Replace old nodeupdate() with new minetest.check_for_falling() --- mesecons_hydroturbine/init.lua | 4 ++-- mesecons_pistons/init.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mesecons_hydroturbine/init.lua b/mesecons_hydroturbine/init.lua index 409da75..5cd2e6f 100644 --- a/mesecons_hydroturbine/init.lua +++ b/mesecons_hydroturbine/init.lua @@ -70,7 +70,7 @@ 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) + minetest.check_for_falling(pos) mesecon.receptor_on(pos) end end, @@ -84,7 +84,7 @@ 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) + minetest.check_for_falling(pos) mesecon.receptor_off(pos) end end, diff --git a/mesecons_pistons/init.lua b/mesecons_pistons/init.lua index a52c802..fb0a335 100644 --- a/mesecons_pistons/init.lua +++ b/mesecons_pistons/init.lua @@ -74,7 +74,7 @@ local piston_remove_pusher = function(pos, node) max_hear_distance = 20, gain = 0.3, }) - nodeupdate(pusherpos) + minetest.check_for_falling(pusherpos) end local piston_on = function(pos, node)