forked from External/mage
tests: fixed random fails in RadiateTest (wrong MOR predicate code, #9550)
This commit is contained in:
parent
e92031a3bb
commit
6f12d62882
5 changed files with 32 additions and 10 deletions
|
|
@ -111,7 +111,7 @@ public class MageObjectReference implements Comparable<MageObjectReference>, Ser
|
|||
@Override
|
||||
public int compareTo(MageObjectReference o) {
|
||||
if (o.getSourceId() == null || this.sourceId == null || Objects.equals(o.getSourceId(), this.sourceId)) {
|
||||
return o.getZoneChangeCounter() - this.zoneChangeCounter;
|
||||
return Integer.compare(o.getZoneChangeCounter(), this.zoneChangeCounter);
|
||||
}
|
||||
return o.getSourceId().compareTo(sourceId);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue