mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-12-11 03:53:33 +01:00
Only resolve inheritances for groups which exist already
This commit is contained in:
parent
7b8654339c
commit
2ecaa39cb6
@ -105,7 +105,11 @@ public class SpongeGroup extends Group {
|
|||||||
.map(LocalizedNode::getNode)
|
.map(LocalizedNode::getNode)
|
||||||
.filter(Node::isGroupNode)
|
.filter(Node::isGroupNode)
|
||||||
.map(Node::getGroupName)
|
.map(Node::getGroupName)
|
||||||
.map(s -> getPlugin().getService().getGroupSubjects().loadSubject(s).join())
|
.distinct()
|
||||||
|
.map(n -> Optional.ofNullable(getPlugin().getGroupManager().getIfLoaded(n)))
|
||||||
|
.filter(Optional::isPresent)
|
||||||
|
.map(Optional::get)
|
||||||
|
.map(SpongeGroup::sponge)
|
||||||
.map(LPSubject::toReference)
|
.map(LPSubject::toReference)
|
||||||
.collect(Collectors.toSet());
|
.collect(Collectors.toSet());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user