mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +01:00
Fix Sponge subject inheritance
This commit is contained in:
parent
f63f652edb
commit
8c1c5c820c
@ -46,6 +46,7 @@ public final class SubjectInheritanceGraphs {
|
||||
@Override
|
||||
public Iterable<? extends CalculatedSubject> successors(CalculatedSubject subject) {
|
||||
return subject.getCombinedParents().stream()
|
||||
.map(ref -> ref.resolveLp().join())
|
||||
.filter(p -> p instanceof CalculatedSubject)
|
||||
.map(p -> ((CalculatedSubject) p))
|
||||
.collect(Collectors.toList());
|
||||
@ -66,6 +67,7 @@ public final class SubjectInheritanceGraphs {
|
||||
@Override
|
||||
public Iterable<? extends CalculatedSubject> successors(CalculatedSubject subject) {
|
||||
return subject.getCombinedParents(this.contextSet).stream()
|
||||
.map(ref -> ref.resolveLp().join())
|
||||
.filter(p -> p instanceof CalculatedSubject)
|
||||
.map(p -> ((CalculatedSubject) p))
|
||||
.collect(Collectors.toList());
|
||||
|
Loading…
Reference in New Issue
Block a user