This commit is contained in:
Stephan Richter
2020-11-12 18:45:03 +01:00
parent 64435ef68b
commit f103954a30
7 changed files with 13 additions and 8 deletions

View File

@@ -17,6 +17,7 @@ public class TrainLength extends Condition {
@Override
public boolean fulfilledBy(Context context) {
if (isNull(context.train)) return false;
return (context.train.length() < maxLength) != inverted;
}