implemented selection of train destination
This commit is contained in:
@@ -282,7 +282,7 @@ public abstract class Block extends StretchableTile{
|
||||
replacements.put("%text%",name);
|
||||
if (isSet(train)) replacements.put("%text%",train.directedName());
|
||||
Tag tag = super.tag(replacements);
|
||||
if (isSet(train)) tag.clazz(tag.get("class")+" occupied");
|
||||
tag.clazz(tag.get("class")+" Block");
|
||||
return tag;
|
||||
}
|
||||
|
||||
@@ -355,4 +355,4 @@ public abstract class Block extends StretchableTile{
|
||||
|
||||
return this;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user