Search for motors by designation or common name, for backward compatibility with 15.03
This commit is contained in:
parent
d6482a5be5
commit
1c768629ea
@ -44,7 +44,9 @@ public class ThrustCurveMotorSetDatabase implements MotorDatabase {
|
|||||||
matchDescription = false;
|
matchDescription = false;
|
||||||
else if (manufacturer != null && !m.getManufacturer().matches(manufacturer))
|
else if (manufacturer != null && !m.getManufacturer().matches(manufacturer))
|
||||||
matchDescription = false;
|
matchDescription = false;
|
||||||
else if (designation != null && !designation.equalsIgnoreCase(m.getDesignation()))
|
else if (designation != null &&
|
||||||
|
!designation.equalsIgnoreCase(m.getDesignation()) &&
|
||||||
|
!designation.equalsIgnoreCase(m.getCommonName()))
|
||||||
matchDescription = false;
|
matchDescription = false;
|
||||||
else if (!Double.isNaN(diameter) && (Math.abs(diameter - m.getDiameter()) > 0.005))
|
else if (!Double.isNaN(diameter) && (Math.abs(diameter - m.getDiameter()) > 0.005))
|
||||||
matchDescription = false;
|
matchDescription = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user