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