diff options
author | VanessaE <vanessaezekowitz@gmail.com> | 2013-05-21 16:20:49 -0700 |
---|---|---|
committer | VanessaE <vanessaezekowitz@gmail.com> | 2013-05-21 16:20:49 -0700 |
commit | b272c6e1f8d7f1e74db997188a58472f097b3e0a (patch) | |
tree | 92bb33b537f524a46ceb910d34b33056bb678403 | |
parent | ea602a4af0639b85a1cb672d642e0788e88143c4 (diff) | |
parent | 93fb11791ca7cd5fd49a276803470fa425020e0f (diff) | |
download | pipeworks-b272c6e1f8d7f1e74db997188a58472f097b3e0a.tar pipeworks-b272c6e1f8d7f1e74db997188a58472f097b3e0a.tar.gz pipeworks-b272c6e1f8d7f1e74db997188a58472f097b3e0a.tar.bz2 pipeworks-b272c6e1f8d7f1e74db997188a58472f097b3e0a.tar.xz pipeworks-b272c6e1f8d7f1e74db997188a58472f097b3e0a.zip |
Merge pull request #32 from Uberi/master
Fix teleport tube in latest mt
-rw-r--r-- | teleport_tube.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/teleport_tube.lua b/teleport_tube.lua index c162952..76370c2 100644 --- a/teleport_tube.lua +++ b/teleport_tube.lua @@ -74,12 +74,12 @@ register_tube("pipeworks:teleport_tube","Teleporter pneumatic tube segment",tele velocity.z=0 local meta = minetest.env:get_meta(pos) channel=meta:get_string("channel") - goto=get_tubes_in_file(pos,channel) - if goto[1]==nil then return {} end - d=math.random(1,#goto) - pos.x=goto[d].x - pos.y=goto[d].y - pos.z=goto[d].z + local target=get_tubes_in_file(pos,channel) + if target[1]==nil then return {} end + d=math.random(1,#target) + pos.x=target[d].x + pos.y=target[d].y + pos.z=target[d].z return meseadjlist end}, on_construct = function(pos) |