Bugfix
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -4,7 +4,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>de.srsoftware</groupId>
|
<groupId>de.srsoftware</groupId>
|
||||||
<artifactId>web4rail</artifactId>
|
<artifactId>web4rail</artifactId>
|
||||||
<version>0.9.19</version>
|
<version>0.9.20</version>
|
||||||
<name>Web4Rail</name>
|
<name>Web4Rail</name>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<description>Java Model Railway Control</description>
|
<description>Java Model Railway Control</description>
|
||||||
|
|||||||
@@ -540,9 +540,11 @@ public class Route implements Constants{
|
|||||||
}
|
}
|
||||||
if (endBlock.route() == this) endBlock.lock(null);
|
if (endBlock.route() == this) endBlock.lock(null);
|
||||||
if (startBlock.route() == this) startBlock.lock(null);
|
if (startBlock.route() == this) startBlock.lock(null);
|
||||||
train.heading(startDirection);
|
if (train != null) {
|
||||||
train.block(startBlock, false);
|
train.heading(startDirection);
|
||||||
if (train.route == this) train.route = null;
|
train.block(startBlock, false);
|
||||||
|
if (train.route == this) train.route = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void saveAll(Collection<Route> routes, String filename) throws IOException {
|
public static void saveAll(Collection<Route> routes, String filename) throws IOException {
|
||||||
|
|||||||
Reference in New Issue
Block a user