KVV: fix 'IRE 1' line

This commit is contained in:
Andreas Schildbach 2023-01-21 14:22:46 +01:00
parent a1a656f38c
commit 0de9148dfe

View file

@ -55,7 +55,7 @@ public class KvvProvider extends AbstractEfaProvider {
if ("0".equals(mot)) { if ("0".equals(mot)) {
if (trainName != null && trainName.startsWith("TRILEX")) if (trainName != null && trainName.startsWith("TRILEX"))
return new Line(id, network, Product.REGIONAL_TRAIN, trainName); return new Line(id, network, Product.REGIONAL_TRAIN, trainName);
if (trainType != null && trainNum.equals("IRE 1") && trainName != null) if (trainNum.equals("IRE 1"))
return new Line(id, network, Product.REGIONAL_TRAIN, "IRE1"); return new Line(id, network, Product.REGIONAL_TRAIN, "IRE1");
} }