Fix ignore component count

This commit is contained in:
SiboVG 2023-04-06 00:08:31 +02:00
parent 4f6b55364d
commit be7d9c4e54

View File

@ -171,12 +171,12 @@ public class BoosterDTO implements BodyTubeDTOAdapter {
// Case: normal body tube // Case: normal body tube
if (stage.getChildPosition(firstTube) == 0) { if (stage.getChildPosition(firstTube) == 0) {
warnings.add(String.format(trans.get("RASAeroExport.warning10"), warnings.add(String.format(trans.get("RASAeroExport.warning10"),
stage.getName(), stage.getChildCount() - i - 1)); stage.getName(), stage.getChildCount() - i));
} }
// Case: body tube with transition shoulder // Case: body tube with transition shoulder
else { else {
warnings.add(String.format(trans.get("RASAeroExport.warning11"), warnings.add(String.format(trans.get("RASAeroExport.warning11"),
stage.getName(), stage.getChildCount() - i - 1)); stage.getName(), stage.getChildCount() - i));
} }
} }
} }