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

@@ -337,9 +337,7 @@ public abstract class Block extends StretchableTile implements Comparable<Block>
Train newTrain = Train.get(trainId);
if (isSet(newTrain) && newTrain != train) {
newTrain.dropTrace();
if (connections(newTrain.direction()).isEmpty()) {
newTrain.heading(null);
}
if (connections(newTrain.direction()).isEmpty()) newTrain.heading(null);
newTrain.set(this);
}
}