From 286e6d57cddbbea1eb5cd0ae622f82754bdd6930 Mon Sep 17 00:00:00 2001 From: h-v-smacker Date: Fri, 10 Aug 2018 18:33:10 +0300 Subject: fix tube device check pos --- technic/machines/register/common.lua | 5 +++-- 1 file 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 -- cgit v1.2.3