implemented correct behaviour of Train.stopNow

This commit is contained in:
Stephan Richter
2021-03-12 14:07:05 +01:00
parent a60e766dac
commit 2556ea7cd9
4 changed files with 10 additions and 6 deletions

View File

@@ -85,7 +85,7 @@ public class Contact extends Tile{
state = true;
if (isSet(timer)) timer.abort();
Context context = new Context(this);
if (isSet(train)) {
if (isSet(train())) {
train.contact(this);
context.train(train);
}