From a446c08d68a985e76678ea1148959ae224400555 Mon Sep 17 00:00:00 2001 From: Jelle De Loecker Date: Thu, 10 Jun 2021 15:35:59 +0200 Subject: [PATCH] Reverse the format list, fixes #12 --- src/main/java/me/lucko/gchat/config/GChatConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/lucko/gchat/config/GChatConfig.java b/src/main/java/me/lucko/gchat/config/GChatConfig.java index 456f857..d7eb0d3 100644 --- a/src/main/java/me/lucko/gchat/config/GChatConfig.java +++ b/src/main/java/me/lucko/gchat/config/GChatConfig.java @@ -96,7 +96,7 @@ public GChatConfig(ConfigurationNode c) { } List formatsList = new ArrayList<>(formats.values()); - formatsList.sort(Comparator.comparingInt(ChatFormat::getPriority)); + formatsList.sort(Comparator.comparingInt(ChatFormat::getPriority).reversed()); this.formats = ImmutableList.copyOf(formatsList);