Skip to content

Commit da5bcd6

Browse files
authored
Correct ejection side for param2=1&3
Machines should always eject to their right. Prior to this patch that was incorrect depending on the rotation of the machine
1 parent e087bd1 commit da5bcd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

technic/machines/register/common.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ function technic.handle_machine_pipeworks(pos, tube_upgrade, send_function)
9797
local z_velocity = 0
9898

9999
-- Output is on the left side of the furnace
100-
if node.param2 == 3 then pos1.z = pos1.z - 1 z_velocity = -1 end
100+
if node.param2 == 3 then pos1.z = pos1.z + 1 z_velocity = 1 end
101101
if node.param2 == 2 then pos1.x = pos1.x - 1 x_velocity = -1 end
102-
if node.param2 == 1 then pos1.z = pos1.z + 1 z_velocity = 1 end
102+
if node.param2 == 1 then pos1.z = pos1.z - 1 z_velocity = -1 end
103103
if node.param2 == 0 then pos1.x = pos1.x + 1 x_velocity = 1 end
104104

105105
local output_tube_connected = false

0 commit comments

Comments
 (0)