Made compare include meta
This commit is contained in:
parent
aa6de6177c
commit
c61a12ab22
1 changed files with 2 additions and 1 deletions
|
@ -50,7 +50,8 @@ public class MetaBlock implements Comparable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int compareTo(Object o) {
|
public int compareTo(Object o) {
|
||||||
return block.getUnlocalizedName().compareTo(((MetaBlock) o).block.getUnlocalizedName());
|
int strComp = block.getUnlocalizedName().compareTo(((MetaBlock) o).block.getUnlocalizedName());
|
||||||
|
return strComp != 0 ? strComp : metadata - ((MetaBlock) o).metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue