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>1.5.3</version>
|
<version>1.5.4</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>
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ public class DelayedAction extends ActionList {
|
|||||||
public boolean fire(Context context) {
|
public boolean fire(Context context) {
|
||||||
int delay = min_delay + (min_delay < max_delay ? random.nextInt(max_delay - min_delay) : 0);
|
int delay = min_delay + (min_delay < max_delay ? random.nextInt(max_delay - min_delay) : 0);
|
||||||
|
|
||||||
new DelayedExecution(delay) {
|
new DelayedExecution(delay,this) {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void execute() {
|
public void execute() {
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ public class WaitForContact extends ActionList {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
contact.addListener(listener);
|
contact.addListener(listener);
|
||||||
new DelayedExecution(timeout) {
|
new DelayedExecution(timeout,this) {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void execute() {
|
public void execute() {
|
||||||
|
|||||||
Reference in New Issue
Block a user