added action StopAllTrains, added null checks
This commit is contained in:
@@ -9,7 +9,7 @@ public class FinishRoute extends Action {
|
||||
@Override
|
||||
public boolean fire(Context context) throws IOException {
|
||||
Route route = context.route;
|
||||
if (route != null) route.finish();
|
||||
if (isSet(route)) route.finish();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user