diff options
author | Jeija <norrepli@gmail.com> | 2012-12-27 20:38:12 +0100 |
---|---|---|
committer | Jeija <norrepli@gmail.com> | 2012-12-27 20:38:12 +0100 |
commit | c062411fa18100c6aa0645d6b7663be42268602d (patch) | |
tree | 28b4c2663ef1f7b90db14e2f0c86f73801d098c6 | |
parent | c63afd49ecd40cb9865b455c7f75cb47c6f4672f (diff) | |
download | mesecons-c062411fa18100c6aa0645d6b7663be42268602d.tar mesecons-c062411fa18100c6aa0645d6b7663be42268602d.tar.gz mesecons-c062411fa18100c6aa0645d6b7663be42268602d.tar.bz2 mesecons-c062411fa18100c6aa0645d6b7663be42268602d.tar.xz mesecons-c062411fa18100c6aa0645d6b7663be42268602d.zip |
Fix another two piston-related bugs
-rw-r--r-- | mesecons_mvps/init.lua | 2 | ||||
-rw-r--r-- | mesecons_pistons/init.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mesecons_mvps/init.lua b/mesecons_mvps/init.lua index 98bbc94..9f8242b 100644 --- a/mesecons_mvps/init.lua +++ b/mesecons_mvps/init.lua @@ -94,7 +94,7 @@ function mesecon:mvps_pull_single(pos, dir) -- pos: pos of mvps; direction: dire mesecon.on_dignode(np, nn) mesecon:update_autoconnect(np) end - return {{pos = np, node = nn}} + return {{pos = np, node = {param2 = 0, name = "air"}}, {pos = pos, node = nn}} end function mesecon:mvps_pull_all(pos, direction) -- pos: pos of mvps; direction: direction of pull diff --git a/mesecons_pistons/init.lua b/mesecons_pistons/init.lua index 576c03a..a51e16e 100644 --- a/mesecons_pistons/init.lua +++ b/mesecons_pistons/init.lua @@ -660,7 +660,7 @@ local piston_get_stopper = function (node, dir, stack, stackid) end mesecon:register_mvps_stopper("mesecons_pistons:piston_normal_on", piston_get_stopper) -mesecon:register_mvps_stopper("mesecons_pistons:piston_sticky_on", piston_pusher_get_stopper) +mesecon:register_mvps_stopper("mesecons_pistons:piston_sticky_on", piston_get_stopper) mesecon:register_mvps_stopper("mesecons_pistons:piston_up_normal_on", piston_up_down_get_stopper) mesecon:register_mvps_stopper("mesecons_pistons:piston_up_sticky_on", piston_up_down_get_stopper) |