Show connections to tunnel exits as well

pull/33/head
tobspr 4 years ago
parent 8678caf6c5
commit 10fe067c85

@ -143,6 +143,7 @@ export class MetaUndergroundBeltBuilding extends MetaBuilding {
const tier = enumUndergroundBeltVariantToTier[variant];
const targetRotation = (rotation + 180) % 360;
const targetSenderRotation = rotation;
for (
let searchOffset = 1;
@ -161,12 +162,20 @@ export class MetaUndergroundBeltBuilding extends MetaBuilding {
// If we encounter an underground receiver on our way which is also faced in our direction, we don't accept that
break;
}
return {
rotation: targetRotation,
rotationVariant: 1,
connectedEntities: [contents],
};
} else if (staticComp.rotation === targetSenderRotation) {
// Draw connections to receivers
if (undergroundComp.mode === enumUndergroundBeltMode.receiver) {
return {
rotation: rotation,
rotationVariant: 0,
connectedEntities: [contents],
};
}
}
}
}

Loading…
Cancel
Save