Update City.java
This commit is contained in:
parent
93b1311647
commit
acb3b5eae0
1 changed files with 3 additions and 0 deletions
|
@ -33,6 +33,9 @@ public class City extends MapObject {
|
|||
if (place == null) {
|
||||
return null;
|
||||
}
|
||||
if("township".equals(place)) {
|
||||
return CityType.TOWN;
|
||||
}
|
||||
for (CityType t : CityType.values()) {
|
||||
if (t.name().equalsIgnoreCase(place)) {
|
||||
return t;
|
||||
|
|
Loading…
Reference in a new issue