Flip sense of MeshMSMessage comparison to match other comparables

This commit is contained in:
Jeremy Lakeman 2017-04-26 14:11:25 +09:30
parent 7c4c242577
commit 556dabe458

View File

@ -108,13 +108,13 @@ public class MeshMSMessage implements Comparable<MeshMSMessage>{
@Override
public int compareTo(MeshMSMessage meshMSMessage) {
if (this.myOffset < meshMSMessage.myOffset)
return -1;
return 1;
if (this.myOffset > meshMSMessage.myOffset)
return 1;
if (this.theirOffset < meshMSMessage.theirOffset)
return -1;
if (this.theirOffset > meshMSMessage.theirOffset)
if (this.theirOffset < meshMSMessage.theirOffset)
return 1;
if (this.theirOffset > meshMSMessage.theirOffset)
return -1;
return 0;
}
}