mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 06:28:49 +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 net.william278.huskhomes.teleport.TeleportResult;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.*;
|
||||||
import java.util.Map;
|
|
||||||
import java.util.Optional;
|
|
||||||
import java.util.UUID;
|
|
||||||
import java.util.concurrent.CompletableFuture;
|
import java.util.concurrent.CompletableFuture;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -188,6 +185,7 @@ public abstract class OnlineUser extends User {
|
|||||||
return true;
|
return true;
|
||||||
})
|
})
|
||||||
.map(permission -> Integer.parseInt(permission.getKey().substring(nodePrefix.length())))
|
.map(permission -> Integer.parseInt(permission.getKey().substring(nodePrefix.length())))
|
||||||
.sorted().toList();
|
.sorted(Collections.reverseOrder())
|
||||||
|
.toList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user