diff options
author | Jeija <norrepli@gmail.com> | 2013-01-20 13:01:40 +0100 |
---|---|---|
committer | Jeija <norrepli@gmail.com> | 2013-01-20 13:01:40 +0100 |
commit | 5c2959826eb3b385115d90c57942ef9ff1fdc580 (patch) | |
tree | a276a3c8d6f01c2b3f50512c9b252e1069a7a159 | |
parent | 841bc70b97e237477b0dd9ba36fd9cd307daf581 (diff) | |
download | mesecons-5c2959826eb3b385115d90c57942ef9ff1fdc580.tar mesecons-5c2959826eb3b385115d90c57942ef9ff1fdc580.tar.gz mesecons-5c2959826eb3b385115d90c57942ef9ff1fdc580.tar.bz2 mesecons-5c2959826eb3b385115d90c57942ef9ff1fdc580.tar.xz mesecons-5c2959826eb3b385115d90c57942ef9ff1fdc580.zip |
Fix piston bug: up piston pushing sand won't drop the sand anymore
-rw-r--r-- | mesecons_mvps/init.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mesecons_mvps/init.lua b/mesecons_mvps/init.lua index 9f8242b..9c94757 100644 --- a/mesecons_mvps/init.lua +++ b/mesecons_mvps/init.lua @@ -20,6 +20,7 @@ end function mesecon:mvps_process_stack(stack) -- update mesecons for placed nodes ( has to be done after all nodes have been added ) for _, n in ipairs(stack) do + nodeupdate(n.pos) mesecon.on_placenode(n.pos, minetest.env:get_node(n.pos)) mesecon:update_autoconnect(n.pos) end @@ -57,7 +58,6 @@ function mesecon:mvps_push(pos, dir, maximum) -- pos: pos of mvps; dir: directio -- remove all nodes for _, n in ipairs(nodes) do minetest.env:remove_node(n.pos) - nodeupdate(n.pos) end -- update mesecons for removed nodes ( has to be done after all nodes have been removed ) @@ -70,7 +70,6 @@ function mesecon:mvps_push(pos, dir, maximum) -- pos: pos of mvps; dir: directio for _, n in ipairs(nodes) do np = mesecon:addPosRule(n.pos, dir) minetest.env:add_node(np, n.node) - nodeupdate(np) end for i in ipairs(nodes) do |