bugfix
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -4,7 +4,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>de.srsoftware</groupId>
|
||||
<artifactId>web4rail</artifactId>
|
||||
<version>1.5.5</version>
|
||||
<version>1.5.6</version>
|
||||
<name>Web4Rail</name>
|
||||
<packaging>jar</packaging>
|
||||
<description>Java Model Railway Control</description>
|
||||
|
||||
@@ -107,7 +107,7 @@ public class Contact extends Tile{
|
||||
|
||||
@Override
|
||||
public Object click(boolean shift) throws IOException {
|
||||
if (!shift) trigger(200);
|
||||
if (!(isDisabled() || shift)) trigger(10);
|
||||
return super.click(shift);
|
||||
}
|
||||
|
||||
@@ -244,7 +244,6 @@ public class Contact extends Tile{
|
||||
}
|
||||
|
||||
public boolean trigger(int duration) {
|
||||
activate(true);
|
||||
new DelayedExecution(duration,"Contact("+Contact.this.addr+")") {
|
||||
|
||||
@Override
|
||||
@@ -252,6 +251,7 @@ public class Contact extends Tile{
|
||||
activate(false);
|
||||
}
|
||||
};
|
||||
activate(true);
|
||||
return true;
|
||||
}
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user