backported bugfixes from state-machine branch
This commit is contained in:
@@ -4,7 +4,7 @@ import java.io.IOException;
|
||||
import java.util.Map;
|
||||
|
||||
import de.srsoftware.tools.Tag;
|
||||
import de.srsoftware.web4rail.Route;
|
||||
import de.srsoftware.web4rail.moving.Train;
|
||||
|
||||
public class BlockContact extends Contact {
|
||||
|
||||
@@ -36,6 +36,12 @@ public class BlockContact extends Contact {
|
||||
public Tag tag(Map<String, Object> replacements) throws IOException {
|
||||
return ((Block)parent()).tag(replacements);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Train train() {
|
||||
train = ((Block)parent()).train();
|
||||
return train;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
|
||||
Reference in New Issue
Block a user