Use nodeupdate() so things like pushing gravel/sand off a ledge allows it to fall.

This commit is contained in:
Anthony Zhang 2012-11-11 17:51:03 -05:00
parent 2d16152188
commit db434c6fe9

@ -195,6 +195,7 @@ function mesecon:piston_push(pos)
minetest.env:dig_node(checkpos) minetest.env:dig_node(checkpos)
minetest.env:add_node(pos, checknode) minetest.env:add_node(pos, checknode)
mesecon:updatenode(pos) mesecon:updatenode(pos)
nodeupdate(pos)
checknode = nextnode checknode = nextnode
end end
end end
@ -224,8 +225,10 @@ function mesecon:piston_pull(pos)
and not mesecon:is_mvps_stopper(checknode.name) then and not mesecon:is_mvps_stopper(checknode.name) then
minetest.env:add_node(pos, checknode) minetest.env:add_node(pos, checknode)
mesecon:updatenode(pos) mesecon:updatenode(pos)
nodeupdate(pos)
minetest.env:dig_node(checkpos) minetest.env:dig_node(checkpos)
mesecon:updatenode(checkpos) mesecon:updatenode(checkpos)
nodeupdate(checkpos)
end end
end end
nodeupdate(pos) nodeupdate(pos)