This commit is contained in:
Stephan Richter
2021-04-11 20:10:11 +02:00
parent cac97b01d3
commit d383ae4dc8
6 changed files with 23 additions and 7 deletions

View File

@@ -503,8 +503,12 @@ public abstract class Block extends StretchableTile{
if (isSet(newTrain) && newTrain != occupyingTrain()) {
free(occupyingTrain());
newTrain.dropTrace();
if (connections(newTrain.direction()).isEmpty()) newTrain.heading(null);
newTrain.set(this);
if (connections(newTrain.direction()).isEmpty()) newTrain.heading(null);
newTrain.set(this);
}
if (newTrain.currentBlock() != this) {
newTrain.dropTrace();
newTrain.set(this);
}
}
}