Skip to content

Commit

Permalink
Reformat transport segments section
Browse files Browse the repository at this point in the history
  • Loading branch information
Feodor0090 committed May 29, 2023
1 parent 315b64c commit b5958fb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/mahomaps/route/RouteDecoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,11 @@ public static RouteSegment[] DecodeSegments(JSONArray j, Geopoint[] line) {
String trt = tr.getJSONObject(0).getString("type");
if (trt.equals("suburban")) {
arr[i] = new RailwaySegment(descr, sv);
continue;
}
if (trt.equals("underground")) {
} else if (trt.equals("underground")) {
arr[i] = new MetroSegment(descr, sv);
continue;
} else {
arr[i] = new TransportSegment(descr, sv);
}
arr[i] = new TransportSegment(descr, sv);
continue;
}
JSONObject action = segmd.optJSONObject("Action");
Expand Down

0 comments on commit b5958fb

Please sign in to comment.