implemented automatic brake time learning

This commit is contained in:
Stephan Richter
2020-11-27 23:51:45 +01:00
parent 5b73a909df
commit ba2be67f8f
11 changed files with 230 additions and 15 deletions

View File

@@ -122,7 +122,7 @@ public abstract class Block extends StretchableTile implements Comparable<Block>
@Override
public Object click() throws IOException {
if (isSet(train)) return train.properties();
if (isSet(train) && train.currentBlock() == this) return train.properties();
return super.click();
}