Bumped to latest snapshot build (does not work with PRE4!)
This commit is contained in:
parent
90c36c3bcc
commit
841f8c358f
3 changed files with 29 additions and 23 deletions
|
@ -27,17 +27,17 @@ public class MainUtil {
|
|||
public static String getTypeIdByClass(String baseVehicle, String type) throws ConversionException {
|
||||
switch (type) {
|
||||
case "BikeType":
|
||||
return "bike";
|
||||
return "bikes";
|
||||
case "BoatType":
|
||||
return "boat";
|
||||
return "boats";
|
||||
case "CarType":
|
||||
return "car";
|
||||
return "cars";
|
||||
case "HelicopterType":
|
||||
return "helicopter";
|
||||
return "helicopters";
|
||||
case "HovercraftType":
|
||||
return "hovercraft";
|
||||
return "hovercrafts";
|
||||
case "PlaneType":
|
||||
return "plane";
|
||||
return "planes";
|
||||
default:
|
||||
throw new InvalidConversionException("vehicleType", baseVehicle);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue