16 changed files with 29 additions and 53 deletions
@ -1,16 +1,12 @@
@@ -1,16 +1,12 @@
|
||||
package de.srsoftware.web4rail.actions; |
||||
|
||||
import java.io.IOException; |
||||
|
||||
public class StopAuto extends Action { |
||||
|
||||
@Override |
||||
public boolean fire(Context context) throws IOException { |
||||
if (context.train != null) { |
||||
public boolean fire(Context context) { |
||||
if (isNull(context.train)) return false; |
||||
context.train.quitAutopilot(); |
||||
return true; |
||||
} |
||||
return false; |
||||
} |
||||
|
||||
} |
||||
|
Loading…
Reference in new issue