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