Fix small logic error
This commit is contained in:
parent
636f8e75dc
commit
61fc13b404
@ -216,8 +216,8 @@ public class RecoveryHandler extends AbstractElementHandler {
|
|||||||
List<BodyTube> bodyTubes = getBodyTubesInStage(sustainer);
|
List<BodyTube> bodyTubes = getBodyTubesInStage(sustainer);
|
||||||
int nrOfTubes = bodyTubes.size();
|
int nrOfTubes = bodyTubes.size();
|
||||||
|
|
||||||
// If there is a Recovery Device 2
|
// If there is no Recovery Device 2
|
||||||
if (event[1] && !"None".equals(eventType[1])) {
|
if (!event[1] || "None".equals(eventType[1])) {
|
||||||
switch (nrOfTubes) {
|
switch (nrOfTubes) {
|
||||||
case 0:
|
case 0:
|
||||||
warnings.add("No sustainer body tube found." + recoveryDevice.getName() + " will not be added to the rocket.");
|
warnings.add("No sustainer body tube found." + recoveryDevice.getName() + " will not be added to the rocket.");
|
||||||
@ -255,7 +255,7 @@ public class RecoveryHandler extends AbstractElementHandler {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// No Recovery Device 2
|
// If there is a Recovery Device 2
|
||||||
else {
|
else {
|
||||||
switch (nrOfTubes) {
|
switch (nrOfTubes) {
|
||||||
case 0:
|
case 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user