summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesecons_luacontroller/init.lua10
-rw-r--r--mesecons_mvps/init.lua7
2 files changed, 13 insertions, 4 deletions
diff --git a/mesecons_luacontroller/init.lua b/mesecons_luacontroller/init.lua
index b99b6e4..c8cb6ca 100644
--- a/mesecons_luacontroller/init.lua
+++ b/mesecons_luacontroller/init.lua
@@ -380,10 +380,12 @@ end
-- ______
-- |
--- | | |
--- |___| | __ ___ _ __ _ _
--- | | | | |\ | | |_| | | | | |_ |_|
--- | |______ |__| | \| | | \ |__| |_ |_ |_ |\
+-- |
+-- | __ ___ _ __ _ _
+-- | | | | | |\ | | |_| | | | | |_ |_|
+-- |___| |______ |__| | \| | | \ |__| |_ |_ |_ |\
+-- |
+-- |
--
-----------------------
diff --git a/mesecons_mvps/init.lua b/mesecons_mvps/init.lua
index 1176121..91fb345 100644
--- a/mesecons_mvps/init.lua
+++ b/mesecons_mvps/init.lua
@@ -93,6 +93,11 @@ function mesecon:mvps_push(pos, dir, maximum) -- pos: pos of mvps; dir: directio
for i in ipairs(nodes) do
nodes[i].pos = mesecon:addPosRule(nodes[i].pos, dir)
end
+
+ for _, n in ipairs(nodes) do
+ mesecon.on_placenode(n.pos, n.node)
+ mesecon:update_autoconnect(n.pos)
+ end
return true, nodes, oldstack
end
@@ -112,6 +117,8 @@ function mesecon:mvps_pull_single(pos, dir) -- pos: pos of mvps; direction: dire
nodeupdate(pos)
mesecon.on_dignode(np, nn)
mesecon:update_autoconnect(np)
+ mesecon:update_autoconnect(pos)
+ mesecon.on_placenode(pos, nn)
end
return {{pos = np, node = {param2 = 0, name = "air"}}, {pos = pos, node = nn}}
end