diff --git a/common/src/main/java/me/lucko/luckperms/common/core/PriorityComparator.java b/common/src/main/java/me/lucko/luckperms/common/core/PriorityComparator.java index 61ac68bc6..2521f5f53 100644 --- a/common/src/main/java/me/lucko/luckperms/common/core/PriorityComparator.java +++ b/common/src/main/java/me/lucko/luckperms/common/core/PriorityComparator.java @@ -66,6 +66,10 @@ public class PriorityComparator implements Comparator { return o1.isWorldSpecific() ? 1 : -1; } + if (o1.getContexts().size() != o2.getContexts().size()) { + return o1.getContexts().size() > o2.getContexts().size() ? 1 : -1; + } + if (o1.isTemporary() != o2.isTemporary()) { return o1.isTemporary() ? 1 : -1; }