mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +01:00
fix API ClassCastException
This commit is contained in:
parent
8a8d6f16ae
commit
6dd093fe72
@ -68,7 +68,7 @@ public class PermissionHolderDelegate implements PermissionHolder {
|
||||
|
||||
@Override
|
||||
public SortedSet<? extends Node> getPermissions() {
|
||||
return ImmutableSortedSet.copyOf(master.getPermissions(false));
|
||||
return ImmutableSortedSet.copyOfSorted(master.getPermissions(false));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -83,7 +83,7 @@ public class Log {
|
||||
private final SortedSet<LogEntry> content;
|
||||
|
||||
public Log(SortedSet<LogEntry> content) {
|
||||
this.content = ImmutableSortedSet.copyOf(content);
|
||||
this.content = ImmutableSortedSet.copyOfSorted(content);
|
||||
}
|
||||
|
||||
public SortedSet<LogEntry> getRecent() {
|
||||
|
Loading…
Reference in New Issue
Block a user