From f5f8708686f73e297318e01d01ad3e4af36d988d Mon Sep 17 00:00:00 2001 From: William Date: Sun, 19 Feb 2023 12:47:49 +0000 Subject: [PATCH] Reverse role comparable sort order --- src/main/java/net/william278/velocitab/player/Role.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/william278/velocitab/player/Role.java b/src/main/java/net/william278/velocitab/player/Role.java index 940c094..0ad3727 100644 --- a/src/main/java/net/william278/velocitab/player/Role.java +++ b/src/main/java/net/william278/velocitab/player/Role.java @@ -25,7 +25,7 @@ public class Role implements Comparable { @Override public int compareTo(@NotNull Role o) { - return o.weight - weight; + return weight - o.weight; } public Optional getPrefix() {