mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-12-27 11:37:35 +01:00
Fix node comparison for identical nodes except the value
This commit is contained in:
parent
c0cd197bd0
commit
194790110d
@ -84,6 +84,12 @@ public class NodeComparator implements Comparator<Node> {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// note vvv - we want false to have priority
|
||||||
|
result = -Boolean.compare(o1.getValue(), o2.getValue());
|
||||||
|
if (result != 0) {
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
throw new AssertionError("nodes are equal? " + o1 + " - " + o2);
|
throw new AssertionError("nodes are equal? " + o1 + " - " + o2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user