mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-03-29 07:20:29 +01:00
Replace old nodeupdate() with new minetest.check_for_falling()
This commit is contained in:
parent
36a6419481
commit
80883ad17f
@ -70,7 +70,7 @@ nodenames = {"mesecons_hydroturbine:hydro_turbine_off"},
|
|||||||
local waterpos={x=pos.x, y=pos.y+1, z=pos.z}
|
local waterpos={x=pos.x, y=pos.y+1, z=pos.z}
|
||||||
if is_flowing_water(waterpos) then
|
if is_flowing_water(waterpos) then
|
||||||
minetest.set_node(pos, {name="mesecons_hydroturbine:hydro_turbine_on"})
|
minetest.set_node(pos, {name="mesecons_hydroturbine:hydro_turbine_on"})
|
||||||
nodeupdate(pos)
|
minetest.check_for_falling(pos)
|
||||||
mesecon.receptor_on(pos)
|
mesecon.receptor_on(pos)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
@ -84,7 +84,7 @@ nodenames = {"mesecons_hydroturbine:hydro_turbine_on"},
|
|||||||
local waterpos={x=pos.x, y=pos.y+1, z=pos.z}
|
local waterpos={x=pos.x, y=pos.y+1, z=pos.z}
|
||||||
if not is_flowing_water(waterpos) then
|
if not is_flowing_water(waterpos) then
|
||||||
minetest.set_node(pos, {name="mesecons_hydroturbine:hydro_turbine_off"})
|
minetest.set_node(pos, {name="mesecons_hydroturbine:hydro_turbine_off"})
|
||||||
nodeupdate(pos)
|
minetest.check_for_falling(pos)
|
||||||
mesecon.receptor_off(pos)
|
mesecon.receptor_off(pos)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
@ -74,7 +74,7 @@ local piston_remove_pusher = function(pos, node)
|
|||||||
max_hear_distance = 20,
|
max_hear_distance = 20,
|
||||||
gain = 0.3,
|
gain = 0.3,
|
||||||
})
|
})
|
||||||
nodeupdate(pusherpos)
|
minetest.check_for_falling(pusherpos)
|
||||||
end
|
end
|
||||||
|
|
||||||
local piston_on = function(pos, node)
|
local piston_on = function(pos, node)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user