summaryrefslogtreecommitdiff
path: root/mesecons_mvps
diff options
context:
space:
mode:
authorJeija <norrepli@gmail.com>2013-02-11 08:03:08 +0100
committerJeija <norrepli@gmail.com>2013-02-11 08:03:08 +0100
commit10ea3c971b21cd2232a542d330280007fa743fc4 (patch)
tree4f2a87666ee41be3dee68c001e47682ba6f5287e /mesecons_mvps
parent591e2d7cde9eda88ca85b71066dd9ed7f75f9a12 (diff)
parent7cc803b0d7ed3ff4f1b57d78b9523919a9fcd924 (diff)
downloadmesecons-10ea3c971b21cd2232a542d330280007fa743fc4.tar
mesecons-10ea3c971b21cd2232a542d330280007fa743fc4.tar.gz
mesecons-10ea3c971b21cd2232a542d330280007fa743fc4.tar.bz2
mesecons-10ea3c971b21cd2232a542d330280007fa743fc4.tar.xz
mesecons-10ea3c971b21cd2232a542d330280007fa743fc4.zip
Merge branch 'master' into luacontroller
Diffstat (limited to 'mesecons_mvps')
-rw-r--r--mesecons_mvps/init.lua3
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