diff --git a/common/src/main/java/me/lucko/luckperms/common/node/comparator/NodeComparator.java b/common/src/main/java/me/lucko/luckperms/common/node/comparator/NodeComparator.java index 19ae9c58..d193462f 100644 --- a/common/src/main/java/me/lucko/luckperms/common/node/comparator/NodeComparator.java +++ b/common/src/main/java/me/lucko/luckperms/common/node/comparator/NodeComparator.java @@ -84,6 +84,12 @@ public class NodeComparator implements Comparator { 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); } }