Support for junction rotation added

master
Joachim Stolberg 2022-01-07 17:40:29 +01:00
parent 04b45ece61
commit 26983f5e88
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ function networks.junction_type(pos, network, default_side, param2)
val = setbit(val, bit(SideToDir[default_side]))
end
for dir = 1,6 do
local dir2 = SideToDir[tubelib2_dir_to_side(dir, param2)]
local dir2 = SideToDir[tubelib2_dir_to_side(dir, param2 or 0)]
if network.force_to_use_tubes then
if connected(network, pos, dir) then
val = setbit(val, bit(dir2))