Made compare include meta

This commit is contained in:
Francesco Macagno 2015-08-22 22:07:42 -07:00
parent aa6de6177c
commit c61a12ab22

View file

@ -50,7 +50,8 @@ public class MetaBlock implements Comparable {
@Override
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