working on route actions:

start block of route should only be freed, if corresponding action is fired.
  however, train should not be available from previous start block after route has finished.
This commit is contained in:
Stephan Richter
2020-11-03 23:28:23 +01:00
parent a2cb3d813e
commit 596317049c
14 changed files with 183 additions and 123 deletions

View File

@@ -181,10 +181,8 @@ public class Relay extends Tile implements Device{
@Override
public void onSuccess() {
super.onSuccess();
try {
Relay.this.state = newState;
plan.place(Relay.this);
} catch (IOException e) {}
Relay.this.state = newState;
plan.place(Relay.this);
}
@Override