From f52a10616521eae7f6d45ed689d5346db715d237 Mon Sep 17 00:00:00 2001 From: Luck Date: Mon, 19 Sep 2016 17:31:00 +0100 Subject: [PATCH] Order nodes alphabetically after other priority rules have been applied --- .../main/java/me/lucko/luckperms/core/PriorityComparator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/me/lucko/luckperms/core/PriorityComparator.java b/common/src/main/java/me/lucko/luckperms/core/PriorityComparator.java index 9103b4da..b7cf63ff 100644 --- a/common/src/main/java/me/lucko/luckperms/core/PriorityComparator.java +++ b/common/src/main/java/me/lucko/luckperms/core/PriorityComparator.java @@ -74,6 +74,6 @@ public class PriorityComparator implements Comparator { return o1.getWildcardLevel() > o2.getWildcardLevel() ? 1 : -1; } - return 1; + return o1.getPermission().compareToIgnoreCase(o2.getPermission()) == 1 ? -1 : 1; } }