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.5</version>
|
<version>1.5.6</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>
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ public class Contact extends Tile{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object click(boolean shift) throws IOException {
|
public Object click(boolean shift) throws IOException {
|
||||||
if (!shift) trigger(200);
|
if (!(isDisabled() || shift)) trigger(10);
|
||||||
return super.click(shift);
|
return super.click(shift);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -244,7 +244,6 @@ public class Contact extends Tile{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean trigger(int duration) {
|
public boolean trigger(int duration) {
|
||||||
activate(true);
|
|
||||||
new DelayedExecution(duration,"Contact("+Contact.this.addr+")") {
|
new DelayedExecution(duration,"Contact("+Contact.this.addr+")") {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -252,6 +251,7 @@ public class Contact extends Tile{
|
|||||||
activate(false);
|
activate(false);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
activate(true);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user