mirror of
https://github.com/joe7575/tubelib2.git
synced 2024-07-07 08:25:20 +02:00
Fix tube placement alignment issue
This commit is contained in:
parent
66908c0265
commit
21582d07d1
@ -249,7 +249,7 @@ function Tube:determine_tube_dirs(pos, preferred_pos, fdir)
|
|||||||
if friendly then
|
if friendly then
|
||||||
local v = vector.direction(pos, preferred_pos)
|
local v = vector.direction(pos, preferred_pos)
|
||||||
local dir1 = self:vector_to_dir(v)
|
local dir1 = self:vector_to_dir(v)
|
||||||
local dir2 = Turn180Deg[fdir]
|
local dir2 = fdir < 5 and Turn180Deg[fdir] or fdir
|
||||||
return dir1, dir2, 1
|
return dir1, dir2, 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user