diff options
author | Anthony Zhang <azhang9@gmail.com> | 2012-11-11 17:51:03 -0500 |
---|---|---|
committer | Anthony Zhang <azhang9@gmail.com> | 2012-11-11 17:51:03 -0500 |
commit | db434c6fe9865159efdc7f3ee5f3cf6f1a253982 (patch) | |
tree | 7cc6d08a0ef7201412bb59dc4884fd4470830ec5 | |
parent | 2d16152188bea4b71051d11d65eb91eed89bf1c3 (diff) |
Use nodeupdate() so things like pushing gravel/sand off a ledge allows it to fall.
-rw-r--r-- | mesecons_pistons/init.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mesecons_pistons/init.lua b/mesecons_pistons/init.lua index fa860cc..e6d09de 100644 --- a/mesecons_pistons/init.lua +++ b/mesecons_pistons/init.lua @@ -195,6 +195,7 @@ function mesecon:piston_push(pos) minetest.env:dig_node(checkpos) minetest.env:add_node(pos, checknode) mesecon:updatenode(pos) + nodeupdate(pos) checknode = nextnode end end @@ -224,8 +225,10 @@ function mesecon:piston_pull(pos) and not mesecon:is_mvps_stopper(checknode.name) then minetest.env:add_node(pos, checknode) mesecon:updatenode(pos) + nodeupdate(pos) minetest.env:dig_node(checkpos) mesecon:updatenode(checkpos) + nodeupdate(checkpos) end end nodeupdate(pos) |