mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Fix incorrect sort order on numerical permissions, close #213
This commit is contained in:
1 parent
4005732877
commit
f4a6873ed0
1 file changed
+3
-5
@@ -6,10 +6,7 @@ import net.william278.huskhomes.position.Position;
|
||||
import net.william278.huskhomes.teleport.TeleportResult;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
import java.util.UUID;
|
||||
import java.util.*;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
|
||||
/**
|
||||
@@ -188,6 +185,7 @@ public abstract class OnlineUser extends User {
|
||||
return true;
|
||||
})
|
||||
.map(permission -> Integer.parseInt(permission.getKey().substring(nodePrefix.length())))
|
||||
.sorted().toList();
|
||||
.sorted(Collections.reverseOrder())
|
||||
.toList();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user