Fix Amenity
This commit is contained in:
parent
297e85b379
commit
a681af7753
1 changed files with 8 additions and 1 deletions
|
@ -256,5 +256,12 @@ public class Amenity extends MapObject {
|
|||
return cmp;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
boolean res = super.equals(o);
|
||||
if (res && o instanceof Amenity) {
|
||||
return ((Amenity) o).getType().getKeyName().equals(getType().getKeyName());
|
||||
}
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue