diff options
author | h-v-smacker <hans-von-smacker+github@gmail.com> | 2018-08-10 18:33:10 +0300 |
---|---|---|
committer | h-v-smacker <hans-von-smacker+github@gmail.com> | 2018-08-10 18:33:10 +0300 |
commit | 286e6d57cddbbea1eb5cd0ae622f82754bdd6930 (patch) | |
tree | 1f5c100588e1a7759118323673f0eab5e3f9f551 | |
parent | 0ea43eb6d5217bf696371e8df22b07f34bf2abfa (diff) |
fix tube device check pos
-rw-r--r-- | technic/machines/register/common.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/technic/machines/register/common.lua b/technic/machines/register/common.lua index 0dcdbe1..f21303f 100644 --- a/technic/machines/register/common.lua +++ b/technic/machines/register/common.lua @@ -132,9 +132,10 @@ function technic.handle_machine_pipeworks(pos, tube_upgrade, send_function) -- The machines shall always eject items to the right side -- This will be easy to remember, since the destination inventory is always on the right as well - if node.param2 == 3 then pos1.z = pos1.z - 1 z_velocity = 1 end + + if node.param2 == 3 then pos1.z = pos1.z + 1 z_velocity = 1 end if node.param2 == 2 then pos1.x = pos1.x - 1 x_velocity = -1 end - if node.param2 == 1 then pos1.z = pos1.z + 1 z_velocity = -1 end + if node.param2 == 1 then pos1.z = pos1.z - 1 z_velocity = -1 end if node.param2 == 0 then pos1.x = pos1.x + 1 x_velocity = 1 end |