mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-07-21 16:20:24 +02:00
Replace old nodeupdate() with new minetest.check_for_falling()
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user