From 8b0d6fd5d2b5bcec3cfc92d80ee798f4304f4b0d Mon Sep 17 00:00:00 2001 From: Luck Date: Mon, 18 Jul 2022 21:38:44 +0100 Subject: [PATCH] Fix compile --- .../me/lucko/luckperms/common/webeditor/WebEditorRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/me/lucko/luckperms/common/webeditor/WebEditorRequest.java b/common/src/main/java/me/lucko/luckperms/common/webeditor/WebEditorRequest.java index b6d4556af..07af8e80b 100644 --- a/common/src/main/java/me/lucko/luckperms/common/webeditor/WebEditorRequest.java +++ b/common/src/main/java/me/lucko/luckperms/common/webeditor/WebEditorRequest.java @@ -240,7 +240,7 @@ public class WebEditorRequest { users.values().stream() .sorted(Comparator // sort firstly by the users relative weight (depends on the groups they inherit) - .comparingInt(u -> u.getCachedData().getMetaData(QueryOptions.nonContextual()).getWeight(CheckOrigin.INTERNAL)).reversed() + .comparingInt(u -> u.getCachedData().getMetaData(QueryOptions.nonContextual()).getWeight(CheckOrigin.INTERNAL).intResult()).reversed() // then, prioritise users we actually have a username for .thenComparing(u -> u.getUsername().isPresent(), ((Comparator) Boolean::compare).reversed()) // then sort according to their username